A utility object for obtaining custom fonts that scale to support Dynamic Type.
- iOS 11.0+
- tvOS 11.0+
- watchOS 4.0+
UIFont object to support scalable custom fonts in your app. You create a font metrics object that specifies the font style—for example, body or title—that you want to use in your app. You then pass your custom font to the
scaled method (or one of the other methods of this class) to obtain a font object that is based on your custom font, has the appropriate style information, and automatically scales to match the current Dynamic Type settings.