---
title: allowsImmersiveEnvironments
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wkwebviewconfiguration/allowsimmersiveenvironments
---

# allowsImmersiveEnvironments

## Declaration

```swift
var allowsImmersiveEnvironments: Bool { get set }
```

## Discussion

Discussion A Boolean value that determines whether the web view allows immersive environments. Set this property to YES to enable support for website-provided immersive environments. If NO, requests to present immersive environments are ignored. If YES, requests are routed to your WKImmersiveEnvironmentDelegate. The default value is NO.
