Hide Sidebar Toggle
Removes the sidebar toggle toolbar item a NavigationSplitView adds by default.
Platform Compatibility
Tags
SwiftUI Code
NavigationSplitView {
Color.blue
.toolbar(removing: .sidebarToggle)
} 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.
Explore Other Components
Browse allReserved Regions
Returns the reserved regions for the given kind. A reserved region indicates that an area within a view’s coordinate space has been claimed by something the view does not own
Default Collapsed Tab Section
Sets the default expansion state for the section containing this tab to collapsed when displayed in the sidebar.
Music Picker
Presents a music picker to select items from the Apple Music catalog and the user’s music library.