Contents

withDesign(_:)

Returns a new font descriptor based on the current object, but with the specified design style.

Declaration

func withDesign(_ design: NSFontDescriptor.SystemDesign) -> Self?

Parameters

  • design:

    The replacement design style for the font. For a list of possible values, see UIFontDescriptor.SystemDesign.

Return Value

The new font descriptor.

See Also

Modifying an Existing Font Descriptor