Navigation Split View Container Background

A background placement behind the content of a NavigationSplitView.

Navigation Split View Container Background - iPadOS Liquid Glass Light Mode Preview

Platform Compatibility

iOS 18.0+ iPadOS 18.0+ watchOS 11.0+

Tags

SwiftUI Code

Docs
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