Sheet Background

Sets the presentation background of the enclosing sheet using a shape style.

Sheet Background - iOS Liquid Glass Light Mode Preview

Platform Compatibility

iOS 16.4+ iPadOS 16.4+ macOS 13.3+ watchOS 9.4+ tvOS 16.4+ visionOS 1.0+

Tags

SwiftUI Code

Docs
@State var showSheet = true

var body: some View {
    Text("Foo")
        .sheet(isPresented: $showSheet) {
            sheetContent
                .presentationBackground(.blue)
        }
}

Found an issue or have a suggestion?

Created: January 31, 2026Updated: January 31, 2026