Content NavigationSplitView
Creates a three-column navigation split view.
Platform Compatibility
Tags
SwiftUI Code
NavigationSplitView {
Color.blue
} content: {
Color.indigo
} detail: {
Color.orange
}Found an issue or have a suggestion?
More Navigation Components
View allToolbar Title Alignment
Sets the preferred alignment of the navigation bar’s title. The navigation bar resolves the alignment of its title automatically based on context, and toolbar roles. Use this modifier to override that resolution.
Preferred Top Column
Controls which column appears on top of the stack when NavigationSplitView collapses into a single stack in certain contexts, such as on iPhone, when iPhone Duo is closed, or on Apple Watch. By default, the sidebar appears on top. In this case, the detail column does instead.
Hide Sidebar Toggle
Removes the sidebar toggle toolbar item a NavigationSplitView adds by default.
Explore Other Components
Browse allDisable Sheet Dismiss Swipe
Conditionally prevents interactive dismissal of presentations like popovers, sheets, and inspectors. Dragging the sheet is still possible to a limited extent, as shown in the screenshot, but it will never be dismissed.
UIKit Separator Colors
The UIKit separator colors that are also used in other components, such as the TextField