Text

public struct Text : Codable
  • Number of lines to display when text spans multiple lines

    Declaration

    Swift

    public var numLines: Int?
  • Text size in pixels

    Declaration

    Swift

    public var size: Double?
  • Maxiumum width of text in pixels

    Declaration

    Swift

    public var maxWidth: Double?
  • Text foreground color

    Declaration

    Swift

    public var foregroundColor: String?
  • Text background color

    Declaration

    Swift

    public var backgroundColor: String?
  • Construct a MPIOptions.LabelAppearance.Text object with the given properties

    Declaration

    Swift

    public init(
        numLines: Int? = nil,
        size: Double? = nil,
        maxWidth: Double? = nil,
        foregroundColor: String? = nil,
        backgroundColor: String? = nil
    )

    Parameters

    numLines

    set the number of lines to display when text spans multiple lines

    size

    set the size of the text in pixels

    maxWidth

    set the maxiumum width of text in pixels

    foregroundColor

    set the foreground color of the text

    backgroundColor

    set the background color of the text