---
title: PresentationComponent
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/presentationcomponent
---

# PresentationComponent

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

## Declaration

```swift
struct PresentationComponent
```

## Overview

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 to the same entity that contains the PresentationComponent: entity.add(presentationComponent) entity.add(BillboardComponent()) note: For an example of breakthrough effects on presentations, see Canyon Crosser: Building a volumetric hike-planning app.

## Topics

### Structures

- [PresentationComponent.Configuration](realitykit/presentationcomponent/configuration.md)

### Initializers

- [init(configuration:content:)](realitykit/presentationcomponent/init(configuration:content:).md)
- [init(isPresented:configuration:content:)](realitykit/presentationcomponent/init(ispresented:configuration:content:).md)

### Instance Properties

- [isPresented](realitykit/presentationcomponent/ispresented.md)

## Relationships

### Conforms To

- [Component](realitykit/component.md)
- [TransientComponent](realitykit/transientcomponent.md)

## See Also

### SwiftUI view attachments

- [RealityViewAttachmentBuilderContent](realitykit/realityviewattachmentbuildercontent.md)
- [Attachment](realitykit/attachment.md)
- [RealityViewAttachments](realitykit/realityviewattachments.md)
- [ViewAttachmentEntity](realitykit/viewattachmententity.md)
- [ViewAttachmentComponent](realitykit/viewattachmentcomponent.md)
- [TextComponent](realitykit/textcomponent.md)
