<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ImmersiveSpace/init(content:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI14ImmersiveSpaceV7contentACyxs5NeverOGxyc_tcAFRs_rlufc::OverloadGroup"
  },
  "title" : "init(content:)"
}
-->

# init(content:)

Creates an immersive space.

```
nonisolated init(@ImmersiveSpaceContentBuilder content: @escaping () -> Content) where Data == Never
```

## Parameters

`content`

An immersive space 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)