init(preferredCompactColumn:sidebar:detail:)
Creates a two-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 detail: () -> Detail) where Content == EmptyViewParameters
- 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.
- detail:
The view to show in the detail area.