TextShape
public class TextShape : Shape, ShapeSelectable
-
Declaration
Swift
public static let type: String
-
Declaration
Swift
public var id: String
-
This shape is positioned entirely with
TextShape.transform.translate
, rather than storing an explicit position.Declaration
Swift
public var transform: ShapeTransform
-
Declaration
Swift
public var text: String
-
Declaration
Swift
public var fontName: String
-
Declaration
Swift
public var fontSize: CGFloat
-
Declaration
Swift
public var fillColor: UIColor
-
If user drags the text box to an exact width, we need to respect it instead of automatically sizing the text box to fit the text.
Declaration
Swift
public var explicitWidth: CGFloat?
-
Set to true if this text is being shown in some other way, i.e. in a
UITextView
that the user is editing.Declaration
Swift
public var isBeingEdited: Bool
-
Declaration
Swift
public var boundingRect: CGRect
-
Declaration
Swift
public init()
-
Declaration
Swift
public required init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public func render(in context: CGContext)
-
Declaration
Swift
public func apply(userSettings: UserSettings)