<!--
{
  "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:)-234sv",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit",
      "SwiftUI",
      "_RealityKit_SwiftUI"
    ],
    "preciseIdentifier" : "s:19_RealityKit_SwiftUI0A4ViewV4make6updateACyAA0aE13CameraContentV4BodyVy_AA0aE18DefaultPlaceholderVGGyAGzYaYbScMYcc_yAGzScMYccSgtcALRszrlufc"
  },
  "title" : "init(make:update:)"
}
-->

# init(make:update:)

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

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

## 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.

## Discussion

Use the `update` closure to modify entities in the scene
based on a Boolean state property, like in the following example:

```swift
RealityView { content in
    content.add(boxEntity)
} update: { content in
    boxEntity.scale = isEnlarged ? .one * 2 : .one
}
```

---

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)