---
title: "init(content:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/immersivespace/init(content:)"
---

# init(content:)

Creates an immersive space.

## Declaration

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

## Parameters

- `content`: An immersive space content builder that defines the content of the space.

## Discussion

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