ContentMarginPlacement
The placement of margins.
Declaration
type ContentMarginPlacement = 'automatic' | 'scrollContent' | 'scrollIndicators';struct ContentMarginPlacementPass a literal, or build one with SwiftUI.ContentMarginPlacement from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'automatic'SwiftUI.ContentMarginPlacement.automaticThe automatic placement.
'scrollContent'SwiftUI.ContentMarginPlacement.scrollContentThe scroll content placement.
'scrollIndicators'SwiftUI.ContentMarginPlacement.scrollIndicatorsThe scroll indicators placement.
Overview
Different views can support customizating margins that appear in different parts of that view. Use values of this type to customize those margins of a particular placement.
For example, use a ContentMarginPlacement.scrollIndicators
placement to customize the margins of scrollable view's scroll
indicators separately from the margins of a scrollable view's
content.
Use this type with the View.contentMargins(_:for:) modifier.
From Apple’s SwiftUI documentation. Code samples there are Swift.
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.
- ContentModeConstants that define how a view's content fills the available space.
- 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.