init(forTextStyle:)
Creates a font metrics object for the specified text style.
Declaration
init(forTextStyle textStyle: UIFont.TextStyle)Parameters
- textStyle:
The text style that you want to apply to the font. For example, you might specify Body for your app’s main content.
Return Value
An initialized font metrics object.