fontWeight(_:)
Sets the font weight of the text in this view.
Declaration
nonisolated func fontWeight(_ weight: Font.Weight?) -> some View
Parameters
- weight:
One of the available font weights. Providing
nilremoves the effect of any font weight modifier applied higher in the view hierarchy.
Return Value
A view that uses the font weight you specify.