Contents

axes(_:)

Creates a split arrangement that supports the given axes.

Declaration

nonisolated func axes(_ axes: Axis.Set) -> SplitArrangementViewStyle

Parameters

  • axes:

    The supported axes the view can split to.

Discussion

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))