TextShapeEditingView
public class TextShapeEditingView : UIView
-
Upper left ‘delete’ button for text. You may add any subviews you want, set border & background color, etc.
Declaration
Swift
public let deleteControlView: UIView
-
Lower right ‘rotate’ button for text. You may add any subviews you want, set border & background color, etc.
Declaration
Swift
public let resizeAndRotateControlView: UIView
-
Right side handle to change width of text. You may add any subviews you want, set border & background color, etc.
Declaration
Swift
public let changeWidthControlView: UIView
-
The
UITextView
that the user interacts with during editingDeclaration
Swift
public let textView: UITextView
-
Declaration
Swift
public enum DragActionType
-
Declaration
Swift
public struct Control
-
Declaration
Swift
public private(set) var controls: [TextShapeEditingView.Control] { get }
-
Declaration
Swift
required public init?(coder aDecoder: NSCoder)
-
Declaration
Swift
override public func sizeThatFits(_ size: CGSize) -> CGSize
-
Declaration
Swift
@discardableResult override public func becomeFirstResponder() -> Bool
-
Declaration
Swift
@discardableResult override public func resignFirstResponder() -> Bool
-
Declaration
Swift
public func addStandardControls()
-
Declaration
Swift
public func addControl<T>(dragActionType: DragActionType, view: T, applyConstraints: (UITextView, T) -> Void) where T : UIView
-
Declaration
Swift
public func getDragActionType(point: CGPoint) -> DragActionType?