<!--
{
  "availability" : [
    "iOS: 16.4.0 -",
    "iPadOS: 16.4.0 -",
    "macCatalyst: 16.4.0 -",
    "macOS: 13.3.0 -",
    "tvOS: 16.4.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/presentationBackground(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE22presentationBackgroundyQrqd__AA10ShapeStyleRd__lF"
  },
  "title" : "presentationBackground(_:)"
}
-->

# presentationBackground(_:)

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

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

## Parameters

`style`

The shape style to use as the presentation
background.

## Discussion

The following example uses the [`thick`](/documentation/SwiftUI/Material/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:)`](/documentation/SwiftUI/View/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)