<!--
{
  "availability" : [
    "iOS: 15.4.0 -",
    "iPadOS: 15.4.0 -",
    "macCatalyst: 15.4.0 -",
    "macOS: 12.3.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKPreferences/isElementFullscreenEnabled",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKPreferences(py)elementFullscreenEnabled"
  },
  "title" : "isElementFullscreenEnabled"
}
-->

# isElementFullscreenEnabled

A Boolean value that indicates whether a web view can display content full screen.

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

## Discussion

The default value for this preference is <doc://com.apple.documentation/documentation/Swift/false>.

> Important:
> When this value is <doc://com.apple.documentation/documentation/Swift/true> and a page requests full-screen mode, the system removes the ``doc://com.apple.webkit/documentation/WebKit/WKWebView`` from your app’s view hierarchy.

---

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)