TextTool
public class TextTool : NSObject, DrawingTool
extension TextTool: UITextViewDelegate
-
MARK: Protocol requirements
Declaration
Swift
public let isProgressive: Bool
-
Declaration
Swift
public let name: String
-
You may set yourself as the delegate to be notified when special selection events happen that you might want to react to. The core framework does not use this delegate.
Declaration
Swift
public weak var delegate: TextToolDelegate?
-
Declaration
Swift
public init(delegate: TextToolDelegate? = nil)
-
Declaration
Swift
public func activate(shapeUpdater: DrawsanaViewShapeUpdating, context: ToolOperationContext, shape: Shape?)
-
Declaration
Swift
public func deactivate(context: ToolOperationContext)
-
Declaration
Swift
public func handleTap(context: ToolOperationContext, point: CGPoint)
-
Declaration
Swift
public func handleDragStart(context: ToolOperationContext, point: CGPoint)
-
Declaration
Swift
public func handleDragContinue(context: ToolOperationContext, point: CGPoint, velocity: CGPoint)
-
Declaration
Swift
public func handleDragEnd(context: ToolOperationContext, point: CGPoint)
-
Declaration
Swift
public func handleDragCancel(context: ToolOperationContext, point: CGPoint)
-
Declaration
Swift
public func apply(context: ToolOperationContext, userSettings: UserSettings)
-
Declaration
Swift
public func textViewDidChange(_ textView: UITextView)
-
Declaration
Swift
public func textViewDidBeginEditing(_ textView: UITextView)
-
Declaration
Swift
public func textViewShouldEndEditing(_ textView: UITextView) -> Bool