<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ImmersiveEnvironmentBehavior",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI28ImmersiveEnvironmentBehaviorV"
  },
  "title" : "ImmersiveEnvironmentBehavior"
}
-->

# ImmersiveEnvironmentBehavior

The behavior of the system-provided immersive environments when a scene is
opened by your app.

```
struct ImmersiveEnvironmentBehavior
```

## Overview

Use one of these values with the [`immersiveEnvironmentBehavior(_:)`](/documentation/SwiftUI/Scene/immersiveEnvironmentBehavior(_:))
scene modifier to indicate how the immersive environment should behave when
your app opens a scene.

## Topics

### Type Properties

[`static var automatic: ImmersiveEnvironmentBehavior`](/documentation/SwiftUI/ImmersiveEnvironmentBehavior/automatic)

A behavior that matches the system default behavior.

[`static var coexist: ImmersiveEnvironmentBehavior`](/documentation/SwiftUI/ImmersiveEnvironmentBehavior/coexist)

A behavior that keeps the system’s immersive environment as is when
opening a scene.

[`static var replace: ImmersiveEnvironmentBehavior`](/documentation/SwiftUI/ImmersiveEnvironmentBehavior/replace)

A behavior that replaces any currently opened immersive environment with
the new scene.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)