An arrangement view style that places the primary and secondary
views side by side along one or more axes.
The split arrangement adapts its layout axis based on the available
size and size class. Use this style for experiences that display two
distinct pieces of content simultaneously, such as a music player
alongside its lyrics or a calculator with a conversion panel.
Constrain which axes the split supports using
``SplitArrangementViewStyle/axes(_:)``.
Creates a split arrangement that supports the given axes.
For example, you could make a split arrangement which will only split its
views into a vertical split layout using the `vertical` axis.
ArrangementView {
PrimaryContent()
} secondary: {
SecondaryContent()
}
.arrangementViewStyle(.split.axes(.vertical))
- Parameter axes: The supported axes the view can split to.
init · iOS 27.1+
init
TypeScript
static init(): SplitArrangementViewStyle
Swift declaration
nonisolated init()
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.