DynamicTypeFont

public protocol DynamicTypeFont : SystemFont

Dynamically scalable font which supports built in textstyle - UIFont.TextStyle.

  • preferredFont(forTextStyle:) Default implementation

    Dynamically scalled font for FontStyle.

    Default Implementation

    Dynamically scalled font for FontStyle.

    Declaration

    Swift

    func preferredFont(forTextStyle textStyle: UIFont.TextStyle) -> UIFont
  • Dynamically scalled font for FontStyle with maximumPointSize & traitCollection.

    Default Implementation

    Dynamically scalled font for FontStyle with maximumPointSize & traitCollection.

    Declaration

    Swift

    func preferredFont(forTextStyle textStyle: UIFont.TextStyle, maximumPointSize: CGFloat, compatibleWith traitCollection: UITraitCollection?) -> UIFont