---
title: automatic
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/immersiveenvironmentbehavior/automatic
---

# automatic

A behavior that matches the system default behavior.

## Declaration

```swift
static var automatic: ImmersiveEnvironmentBehavior { get }
```

## Discussion

Discussion Use this value with the immersiveEnvironmentBehavior(_:) scene modifier to define that the system follows a default behavior regarding the system’s immersive environment when your app opens a scene.
