<!--
{
  "availability" : [
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/RemoteImmersiveSpace/init(content:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI20RemoteImmersiveSpaceV7contentACyAA24CompositorContentBuilderV0H0Vy_qd__Gs5NeverOGqd__yc_tcAIRszAKRs_AA0gH0Rd__lufc"
  },
  "title" : "init(content:)"
}
-->

# init(content:)

Creates a remote immersive space.

```
nonisolated init<C>(@CompositorContentBuilder content: @escaping () -> C) where Content == CompositorContentBuilder.Content<C>, Data == Never, C : CompositorContent
```

## Parameters

`content`

A compositor content builder that defines the content
of the space.

## Discussion

The space uses the specified content builder to form the content.

---

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)