<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PresentationComponent",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:19_RealityKit_SwiftUI21PresentationComponentV"
  },
  "title" : "PresentationComponent"
}
-->

# PresentationComponent

A component that presents a SwiftUI modal presentation from a
RealityKit entity.

```
struct PresentationComponent
```

## Overview

Popovers that this component presents initially rotate themselves to face the active camera
and appear with a breakthrough effect by default. To change the breakthrough
effect on the presented view, use the `presentationBreakthroughEffect` modifier,
like in the following example:

```
var presentationComponent = PresentationComponent(
    configuration: .popover(arrowEdge: .bottom),
    content: PresentedView()
        .glassBackgroundEffect()
        .presentationBreakthroughEffect(.prominent)
)
```

For presentations that opt out of breakthrough effects, consider applying
breakthrough effects to the main elements of the view, to ensure that the
occluding content doesn’t clip the content
within the presentation:

```
HStack {
    Text(title)
        .breakthroughEffect(.subtle)

    Button(action: action, label: label)
        .breakthroughEffect(.subtle)
}
.glassBackgroundEffect()
.presentationBreakthroughEffect(.none)
```

To make the presentation continuously face the active camera, add a [`BillboardComponent`](/documentation/RealityKit/BillboardComponent)
to the same entity that contains the `PresentationComponent`:

```
entity.add(presentationComponent)
entity.add(BillboardComponent())
```

> Note: For an example of breakthrough effects on presentations, see
> <doc://com.apple.documentation/documentation/visionOS/canyon-crosser-building-a-volumetric-hike-planning-app>.

---

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)