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

Init

  • Creates an ASAPPFontFamily instance given the UIFont for each weight.

    Declaration

    Swift

    public init(light: UIFont,
                regular: UIFont,
                medium: UIFont,
                bold: UIFont)

    Parameters

    light

    A light-weight UIFont.

    regular

    A regular-weight UIFont.

    medium

    A medium-weight or semi-bold UIFont.

    bold

    A heavy-weight UIFont.

  • Creates an ASAPPFontFamily instance given the font name for each weight.

    Declaration

    Swift

    public init?(lightFontName: String,
                 regularFontName: String,
                 mediumFontName: String,
                 boldFontName: String)

    Parameters

    light

    name of light font file.

    regular

    name of regular font file.

    medium

    name of medium or semi-bold font file.

    bold

    name of bold font file.

  • Creates an ASAPPFontFamily instance representing the SDK’s default font family (the system font).

    Declaration

    Swift

    public override init()