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