Declaration
compose().fontDesign(design: SwiftUI.FontDesign | null)nonisolated func fontDesign(_ design: Font.Design?) -> some ViewParameters
design*SwiftUI.FontDesign | nullOne 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.
See also
More in Text and symbols.
- allowsTighteningSets whether text in this view can compress the space between characters when necessary to fit text in a line.
- autocorrectionDisabledSets whether to disable autocorrection for this view.
- baselineOffsetSets the vertical offset for the text relative to its baseline in this view.
- boldApplies a bold font weight to the text in this view.
- findDisabledPrevents find and replace operations in a text editor.
- findNavigatorProgrammatically presents the find and replace interface for text editor views.
- fontSets the default font for text in this view.
- fontWeightSets the font weight of the text in this view.
- fontWidthSets the font width of the text in this view.
- interactionActivityTrackingTagSets a tag that you use for tracking interactivity.
- italicApplies italics to the text in this view.
- kerningSets the spacing, or kerning, between characters for the text in this view.