FontWeight
A weight to use for fonts.
Declaration
type FontWeight =
| 'black'
| 'bold'
| 'heavy'
| 'light'
| 'medium'
| 'regular'
| 'semibold'
| 'thin'
| 'ultraLight';@frozen struct WeightPass a literal, or build one with SwiftUI.FontWeight from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'black'SwiftUI.FontWeight.black'bold'SwiftUI.FontWeight.bold'heavy'SwiftUI.FontWeight.heavy'light'SwiftUI.FontWeight.light'medium'SwiftUI.FontWeight.medium'regular'SwiftUI.FontWeight.regular'semibold'SwiftUI.FontWeight.semibold'thin'SwiftUI.FontWeight.thin'ultraLight'SwiftUI.FontWeight.ultraLight
Used by
See also
More in Text and symbols.
- DisabledTextSelectabilityA selectability type that disables text selection by the person using your app.
- EnabledTextSelectabilityA selectability type that enables text selection by the person using your app.
- FindContextThe status of the find navigator for views which support text editing.
- FixedTextVariantThe default text variant preference that chooses the largest available variant.
- FontAn environment-dependent font.
- FontChainFont with chained calls: SwiftUI.Font.bold(...).
- FontContextInformation used to resolve a font.
- FontDesignA design to use for fonts.
- FontLeadingA line spacing adjustment that you can apply to a font.
- FontWidthA width to use for fonts that have multiple widths.
- SubmitLabelA semantic label describing the label of submission within a view hierarchy.
- SubmitTriggersA type that defines various triggers that result in the firing of a submission action.