ASAPPTextStyles

@objc(ASAPPTextStyles)
@objcMembers
public class ASAPPTextStyles : NSObject

Customizable text styles for various classes of text.

General

ComponentUI: Headers

ComponentUI: Body

  • The style of body text.

    Declaration

    Swift

    public var body: ASAPPTextStyle { get set }
  • The style of bold body text.

    Declaration

    Swift

    public var bodyBold: ASAPPTextStyle { get set }
  • The style of secondary body text.

    Declaration

    Swift

    public var body2: ASAPPTextStyle { get set }
  • The style of bold secondary body text.

    Declaration

    Swift

    public var bodyBold2: ASAPPTextStyle { get set }
  • The style of top-level detail text.

    Declaration

    Swift

    public var detail1: ASAPPTextStyle { get set }
  • The style of second-level detail text.

    Declaration

    Swift

    public var detail2: ASAPPTextStyle { get set }
  • The style of error text.

    Declaration

    Swift

    public var error: ASAPPTextStyle { get set }

ComponentUI: Fonts

  • Updates all text styles above with the given font family.

    Declaration

    Swift

    public func updateStyles(for fontFamily: ASAPPFontFamily)

    Parameters

    fontFamily

    The font family to apply to all text styles. Each text style will use an appropriate weight.

  • Updates all text styles above with the given color.

    Declaration

    Swift

    public func updateColors(with color: UIColor)

    Parameters

    color

    The color to apply to all text styles. Each text style will use the color at an appropriate opacity.