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