DynamicTypography

public protocol DynamicTypography : Typography, TypographyOptions

DynamicTypography provides dynamic types fonts along with static size fonts

  • Returns an instance of the font for the specified FontStyle and scaled appropriately for the user’s selected content size category.

    Declaration

    Swift

    static func preferredFont(forTextStyle style: FontStyle) -> UIFont

    Parameters

    style

    FontStyle

    Return Value

    Created font.