<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/RealityView/init(make:update:placeholder:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit",
      "SwiftUI",
      "_RealityKit_SwiftUI"
    ],
    "preciseIdentifier" : "s:19_RealityKit_SwiftUI0A4ViewV4make6update11placeholderACyAA0aE13CameraContentV4BodyVy_qd__GGyAHzYaYbScMYcc_yAHzScMYccSgqd__yXEtcAKRsz0cD00E0Rd__lufc::OverloadGroup"
  },
  "title" : "init(make:update:placeholder:)"
}
-->

# init(make:update:placeholder:)

Creates a reality view for iOS and macOS, with
an optional update closure
and placeholder view.

```
nonisolated init<P>(make: @escaping @MainActor @Sendable (inout RealityViewCameraContent) async -> Void, update: (@MainActor (inout RealityViewCameraContent) -> Void)? = nil, @ViewBuilder placeholder: () -> P) where Content == RealityViewCameraContent.Body<P>, P : View
```

## Parameters

`make`

An asynchronous closure that configures the
initial content of the new `RealityView`.
This closure is asynchronous to keep your app’s UI responsive while
you load content to populate this view.

`update`

An optional closure that updates the `RealityView`
instance’s content as the view’s state changes.

`placeholder`

A temporary view that the [`RealityView`](/documentation/RealityKit/RealityView) displays until
your closure for the `make` parameter completes.
For example, you can display a loading indicator with a
<doc://com.apple.documentation/documentation/SwiftUI/ProgressView>
instance as a placeholder.

## Discussion

For example, your app can asynchronously load an [`Entity`](/documentation/RealityKit/Entity) from a
`.reality` or `.usdz` file, and display a
<doc://com.apple.documentation/documentation/SwiftUI/ProgressView>
while the system loads the file:

```swift
RealityView { content in
    if let newEntity = try? await Entity(named: "model_file_name") {
        content.add(newEntity)
    }
} placeholder: {
    ProgressView()
}
```

---

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)