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

# init(foveatedStreaming:content:)

Creates an immersive space to display foveated streaming content alongside `RealityKit` content.

```
nonisolated init<V>(foveatedStreaming session: FoveatedStreamingSession, @ViewBuilder content: @escaping () -> V) where Content == ImmersiveSpaceViewContent<FoveatedStreamingSpaceContent>, Data == Never, V : View
```

## Parameters

`session`

The foveated streaming session whose streamed content the space displays.

`content`

An immersive space content builder that defines the content of the space.

## Discussion

You can add <doc://com.apple.documentation/documentation/RealityKit> content to your space that coexists alongside the streamed content, for example:

```swift
ImmersiveSpace(foveatedStreaming: session) {
    RealityView { content in
        // Add a sphere to the immersive space.
        let entity = ModelEntity(mesh: .generateSphere(radius: 0.1),
                         materials: [SimpleMaterial()])
        content.add(entity)
    }
}
```

---

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)