ASAPPTextStyles
@objc(ASAPPTextStyles)
@objcMembers
public class ASAPPTextStyles : NSObject
Customizable text styles for various classes of text.
-
The style of navigation bar buttons.
Declaration
Swift
public var navButton: ASAPPTextStyle { get set }
-
The text style of buttons.
Declaration
Swift
public var button: ASAPPTextStyle { get set }
-
The style of action buttons.
Declaration
Swift
public var actionButton: ASAPPTextStyle { get set }
-
The style of links.
Declaration
Swift
public var link: ASAPPTextStyle { get set }
-
The style of top-level headers.
Declaration
Swift
public var header1: ASAPPTextStyle { get set }
-
The style of second-level headers.
Declaration
Swift
public var header2: ASAPPTextStyle { get set }
-
The style of third-level headers.
Declaration
Swift
public var header3: ASAPPTextStyle { get set }
-
The style of subheaders.
Declaration
Swift
public var subheader: ASAPPTextStyle { get set }
-
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 }
-
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.