Contents

fontWidth(_:)

Sets the font width of the text.

Declaration

nonisolated func fontWidth(_ width: Font.Width?) -> Text

Parameters

  • width:

    One of the available font widths.

Return Value

Text that uses the font width you specify, if available.

See Also

Choosing a font