<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKWebViewConfiguration/allowsImmersiveEnvironments",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKWebViewConfiguration(py)allowsImmersiveEnvironments"
  },
  "title" : "allowsImmersiveEnvironments"
}
-->

# allowsImmersiveEnvironments

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

## Discussion\abstract A Boolean value that determines whether the web view allows immersive environments.
\discussion 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.

---

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)