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 more

    Declaration

    Swift

    public struct Style : JSONDictEncodable
  • Container for representing Styles that are shared within a document

    See more

    Declaration

    Swift

    public struct SharedStyle : JSONDictEncodable
  • Represents a styled segment of a string

    See more

    Declaration

    Swift

    public struct Segment : JSONDictEncodable