Text
public class Text : Layer
Represents a Text layer in Sketch
-
Whether the text should wrap or stay on a single line
Declaration
Swift
public let wrapText: Bool -
List of Text segments in left to right order as they appear in the Text container
Declaration
Swift
public let segments: [Segment] -
Declaration
Swift
public required init?(json: [String : Any]) -
Undocumented
Declaration
Swift
override public func toJson() -> [String : Any]
-
A struct containing styling information about a string
See moreDeclaration
Swift
public struct Style : JSONDictEncodable -
Container for representing
See moreStylesthat are shared within a documentDeclaration
Swift
public struct SharedStyle : JSONDictEncodable -
Represents a styled segment of a string
See moreDeclaration
Swift
public struct Segment : JSONDictEncodable
Text Class Reference