fontWeight(_:)
Sets the font weight of the text.
Declaration
nonisolated func fontWeight(_ weight: Font.Weight?) -> TextParameters
- weight:
One of the available font weights.
Return Value
Text that uses the font weight you specify.
Sets the font weight of the text.
nonisolated func fontWeight(_ weight: Font.Weight?) -> TextOne of the available font weights.
Text that uses the font weight you specify.