TextStyle

public struct TextStyle : ViewStyle

Contains the styling customization options for any labels.

  • The font used to display the text.

    Declaration

    Swift

    public var font: UIFont
  • The color of the text.

    Declaration

    Swift

    public var color: UIColor
  • The technique to use for aligning the text.

    Declaration

    Swift

    public var textAlignment: NSTextAlignment
  • Initializes the text style.

    Declaration

    Swift

    public init(font: UIFont, color: UIColor, textAlignment: NSTextAlignment)

    Parameters

    font

    The font used to display the text.

    color

    The color of the text.

    textAlignment

    The technique to use for aligning the text.