init(preferredCompactColumn:sidebar:content:detail:)
Creates a three-column navigation split view that enables programmatic control over which column appears on top when the view collapses into a single column in narrow sizes.
Declaration
nonisolated init(preferredCompactColumn: Binding<NavigationSplitViewColumn>, @ViewBuilder sidebar: () -> Sidebar, @ViewBuilder content: () -> Content, @ViewBuilder detail: () -> Detail)Parameters
- preferredCompactColumn:
A Binding to state that controls which column appears on top when the view collapses.
- sidebar:
The view to show in the leading column.
- content:
The view to show in the middle column.
- detail:
The view to show in the detail area.