---
title: "presentationBackground(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/presentationbackground(_:)"
---

# presentationBackground(_:)

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

## Declaration

```swift
nonisolated func presentationBackground<S>(_ style: S) -> some View where S : ShapeStyle

```

## Parameters

- `style`: The shape style to use as the presentation background.

## Discussion

Discussion The following example uses the thick material as the sheet background: struct ContentView: View {     @State private var showSettings = false

var body: some View {         Button("View Settings") {             showSettings = true         }         .sheet(isPresented: $showSettings) {             SettingsView()                 .presentationBackground(.thickMaterial)         }     } } The presentationBackground(_:) modifier differs from the background(_:ignoresSafeAreaEdges:) modifier in several key ways. A presentation background: Automatically fills the entire presentation. Allows views behind the presentation to show through translucent styles on supported platforms. note: Sheet presentations on macOS do not support translucency or transparency — the background is always opaque.

## See Also

### Styling a sheet and its background

- [presentationCornerRadius(_:)](swiftui/view/presentationcornerradius(_:).md)
- [presentationBackground(alignment:content:)](swiftui/view/presentationbackground(alignment:content:).md)
- [presentationBackgroundInteraction(_:)](swiftui/view/presentationbackgroundinteraction(_:).md)
- [PresentationBackgroundInteraction](swiftui/presentationbackgroundinteraction.md)
