TextDetail

public struct TextDetail

A struct storing all of the information describing text content.

  • Raw text content. Included in attributedText.

    Declaration

    Swift

    public var text: String?
  • Specified font. Included in attributedText.

    Declaration

    Swift

    public var font: UIFont
  • Line spacing. Included in attributedText.

    Declaration

    Swift

    public var lineSpacing: CGFloat?
  • Letter spacing. Included in attributedText.

    Declaration

    Swift

    public var letterSpacing: CGFloat
  • Text color.

    Declaration

    Swift

    public var textColor: UIColor
  • Alignment within text layer bounds.

    Declaration

    Swift

    public var alignment: NSTextAlignment
  • A computed property that combines text, line spacing, letter spacing, and font.

    Declaration

    Swift

    public var attributedText: NSAttributedString { get }