TextVariantPreference
A protocol for controlling the size variant of text views.
Declaration
type TextVariantPreference =
| 'fixed'
| 'sizeDependent'
| FixedTextVariant
| SizeDependentTextVariant;protocol TextVariantPreferencePass a literal, or build one with SwiftUI.TextVariantPreference from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'fixed'SwiftUI.TextVariantPreference.fixedThe default text variant preference. It always chooses the largest available variant.
'sizeDependent'SwiftUI.TextVariantPreference.sizeDependentThe size dependent preference allows the text to take the available space into account when choosing the size variant to display.