<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PresentationComponent/init(isPresented:configuration:content:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit",
      "SwiftUI",
      "_RealityKit_SwiftUI"
    ],
    "preciseIdentifier" : "s:19_RealityKit_SwiftUI21PresentationComponentV11isPresented13configuration7contentAC0cD07BindingVySbG_AC13ConfigurationVxtcAG4ViewRzlufc"
  },
  "title" : "init(isPresented:configuration:content:)"
}
-->

# init(isPresented:configuration:content:)

Present `content` when a binding that you provide is `true`, using
modality and options specified by `configuration`.

```
nonisolated init<Content>(isPresented: Binding<Bool>, configuration: PresentationComponent.Configuration, content: Content) where Content : View
```

## Parameters

`isPresented`

A binding to a Boolean value that determines whether
to present the content.

`configuration`

A configuration that specifies the modality,
appearance, and behavior of the presentation.

`content`

The SwiftUI view hierarchy that you want to present with
the component.

## Discussion

Use this component when you want to present a modal that is anchored to
an entity.

---

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)