<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/presentationBreakthroughEffect(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE30presentationBreakthroughEffectyQrAA0eF0VF"
  },
  "title" : "presentationBreakthroughEffect(_:)"
}
-->

# presentationBreakthroughEffect(_:)

Changes the way the enclosing presentation breaks through content
occluding it.

```
nonisolated func presentationBreakthroughEffect(_ effect: BreakthroughEffect) -> some View
```

## Parameters

`effect`

The type of effect to apply when a presentation element is
occluded by other content.

## Discussion

Use this modifier to disable or customize a breakthrough effect for the
enclosing presentation.

Breakthrough is an effect allowing elements to be visible to the user
even when other app content (3D models, UI elements) is occluding it.
The way the element appears depends on the chosen [`BreakthroughEffect`](/documentation/SwiftUI/BreakthroughEffect).

Most system presentations appear with a breakthrough effect by default.
For these cases, you can customize the type of effect by applying the
[`presentationBreakthroughEffect(_:)`](/documentation/SwiftUI/View/presentationBreakthroughEffect(_:)) modifier to the content of the
presentation, like in the following example:

```swift
Button("Show Details") {
    isShowingDetails = true
}
.popover(isPresented: $isShowingDetails) {
    DetailsView()
        .presentationBreakthroughEffect(.prominent)
}
```

Only popovers allow breakthrough to be disabled altogether. Passing a
`.none` value for a sheet has no effect.

---

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)