Navigation Container Background
Sets the container background of the enclosing container using a view.
Platform Compatibility
Tags
SwiftUI Code
NavigationStack {
Text("Foo")
.containerBackground(.blue.gradient, for: .navigation)
}