ControlSize
The size classes, like regular or small, that you can apply to controls within a view.
Declaration
type ControlSize = 'extraLarge' | 'large' | 'mini' | 'regular' | 'small';enum ControlSizePass a literal, or build one with SwiftUI.ControlSize from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'extraLarge'SwiftUI.ControlSize.extraLargeA control version that is substantially sized. The largest control size. Resolves to
ControlSize.largeon platforms other than visionOS.'large'SwiftUI.ControlSize.largeA control version that is prominently sized.
'mini'SwiftUI.ControlSize.miniA control version that is minimally sized.
'regular'SwiftUI.ControlSize.regularA control version that is the default size.
'small'SwiftUI.ControlSize.smallA control version that is proportionally smaller size for space-constrained views.
Used by
See also
More in Layout.
- AlignmentAn alignment in both axes.
- ContainerBackgroundPlacementThe placement of a container background.
- ContainerValuesReadableKeys of SwiftUI ContainerValues JavaScript can read.
- ContainerValuesWritableKeys of SwiftUI ContainerValues JavaScript can write.
- DocumentLaunchGeometryProxyA proxy for access to the frame of the scene and its title view.
- DynamicTypeSizeA Dynamic Type size, which specifies how large scalable content should be.
- EdgeAn enumeration to indicate one edge of a rectangle.
- EdgeInsetsThe inset distances for the sides of a rectangle.
- EdgeInsetsChainEdgeInsets with chained calls: SwiftUI.EdgeInsets.inset(...).
- EdgeSetAn efficient set of edges.
- GeometryProxyA proxy for access to the size and coordinate space (for anchor resolution) of the container view.
- GridItemA description of a row or a column in a lazy grid.