Fontable

public protocol Fontable

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Declaration

    Swift

    func of(size: CGFloat) -> Font
  • of(size:) Default implementation

    Default Implementation

    Declaration

    Swift

    public func of(size: CGFloat) -> Font
  • ofCaptionSize(forSizeClass:) Extension method

    Declaration

    Swift

    public func ofCaptionSize(forSizeClass: UserInterfaceSizeClass?) -> Font
  • Declaration

    Swift

    public func ofBodyFontSize(forSizeClass: UserInterfaceSizeClass?) -> Font
  • Declaration

    Swift

    public func ofTitleFontSize(forSizeClass: UserInterfaceSizeClass?) -> Font