ContentMode
Constants that define how a view's content fills the available space.
Declaration
type ContentMode = 'fill' | 'fit';@frozen enum ContentModePass a literal, or build one with SwiftUI.ContentMode from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'fill'SwiftUI.ContentMode.fillAn option that resizes the content so it occupies all available space, both vertically and horizontally.
'fit'SwiftUI.ContentMode.fitAn option that resizes the content so it's all within the available space, both vertically and horizontally.
Used by
See also
More in Other values.
- AxisThe horizontal or vertical dimension in a 2D coordinate system.
- AxisSetAn efficient set of axes.
- ButtonRoleA value that describes the purpose of a button.
- CapsuleA capsule shape aligned inside the frame of the view containing it.
- CircleA circle centered on the frame of the view containing it.
- ConcentricRectangleA shape whose corners you configure, individually or uniformly, to be squared, rounded, or concentric relative to a container shape's corners.
- ContentMarginGuideA guide for resolving the content margins for a view.
- ContentMarginPlacementThe placement of margins.
- DatePickerComponents
- DatePickerComponents2The date and time components that a date picker shows.
- DeviceHingeA type encapsulating the state of a single hinge.
- DeviceHingeContextA type describing the context of hinges on the device.