<!--
{
  "availability" : [
    "visionOS: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoveatedStreaming",
  "identifier" : "/documentation/FoveatedStreaming/FoveatedStreamingSession/ImmersivePresentationBehaviors-swift.struct/presentOnConnect(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foveated Streaming",
      "FoveatedStreaming"
    ],
    "preciseIdentifier" : "s:17FoveatedStreaming0aB7SessionC30ImmersivePresentationBehaviorsV16presentOnConnectyAE7SwiftUI04OpenD11SpaceActionVFZ"
  },
  "title" : "presentOnConnect(_:)"
}
-->

# presentOnConnect(_:)

Opens the immersive space when the session connects.

```
static func presentOnConnect(_ action: OpenImmersiveSpaceAction) -> FoveatedStreamingSession.ImmersivePresentationBehaviors
```

## Parameters

`action`

The action that opens the immersive space.

---

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)