iPad SwiftUI layouts
Explore SwiftUI APIs, components, and modifiers with interactive iPad previews, Swift code, and Apple documentation.
24elements
Navigation
Hide Sidebar Toggle
Removes the sidebar toggle toolbar item a NavigationSplitView adds by default.
Explore Hide Sidebar Toggle on iPad in portrait and landscape, with SwiftUI code and Apple API documentation.
SwiftUI code
NavigationSplitView {
Color.blue
.toolbar(removing: .sidebarToggle)
} detail: {
Color.orange
}Compatibility
iOS 17.0+ iPadOS 17.0+ macOS 13.0+ watchOS 10.0+ tvOS 17.0+ visionOS 1.0+
Tags
Found an issue or have a suggestion?
All variants
Every available iPad screenshot for Hide Sidebar Toggle.