Navigation Split View Container Background
A background placement behind the content of a NavigationSplitView.
Platform Compatibility
iOS 18.0+ iPadOS 18.0+ watchOS 11.0+
Tags
SwiftUI Code
NavigationSplitView {
Text("Foo")
.containerBackground(.thinMaterial, for: .navigation)
.containerBackground(.blue.gradient, for: .navigationSplitView)
} detail: {
Text("Bar")
.containerBackground(.ultraThinMaterial, for: .navigation)
}Found an issue or have a suggestion?
Created: March 15, 2026Updated: March 15, 2026