ASAPPFontFamily
@objc(ASAPPFontFamily)
@objcMembers
public class ASAPPFontFamily : NSObject
Represents a font family used by default styles.
-
The lightest weight.
Declaration
Swift
public let light: UIFont -
The second-lightest weight, used for body text.
Declaration
Swift
public let regular: UIFont -
The second-heaviest weight.
Declaration
Swift
public let medium: UIFont -
The heaviest weight.
Declaration
Swift
public let bold: UIFont
-
Creates an
ASAPPFontFamilyinstance given theUIFontfor each weight.Declaration
Swift
public init(light: UIFont, regular: UIFont, medium: UIFont, bold: UIFont)Parameters
lightA light-weight
UIFont.regularA regular-weight
UIFont.mediumA medium-weight or semi-bold
UIFont.boldA heavy-weight
UIFont. -
Creates an
ASAPPFontFamilyinstance given the font name for each weight.Declaration
Swift
public init?(lightFontName: String, regularFontName: String, mediumFontName: String, boldFontName: String)Parameters
lightname of light font file.
regularname of regular font file.
mediumname of medium or semi-bold font file.
boldname of bold font file.
-
Creates an
ASAPPFontFamilyinstance representing the SDK’s default font family (the system font).Declaration
Swift
public override init()
ASAPPFontFamily Class Reference