Contents

preferredFontDescriptor(withTextStyle:)

Returns a font descriptor that contains the specified text style and the user’s selected content size category.

Declaration

class func preferredFontDescriptor(withTextStyle style: UIFont.TextStyle) -> UIFontDescriptor

Parameters

  • style:

    The text style for which to return a font descriptor.

Return Value

The new font descriptor.

See Also

Creating a font descriptor