UIFontProvider

public protocol UIFontProvider : AnyObject

Declares and object that provides font names associated with specific font text styles.

  • appFontName(for:) Default implementation

    Returns a valid font name associated with the font text style specified. By default, returns the font name of the font returned by UIFont.preferredFont(forTextStyle:).

    Default Implementation

    Returns a valid font name associated with the font text style specified. By default, returns the font name of the font returned by UIFont.preferredFont(forTextStyle:).

    Declaration

    Swift

    func appFontName(for style: UIFont.TextStyle) -> String