Contents

fontWeight(_:)

Sets the font weight of the text.

Declaration

nonisolated func fontWeight(_ weight: Font.Weight?) -> Text

Parameters

  • weight:

    One of the available font weights.

Return Value

Text that uses the font weight you specify.

See Also

Choosing a font