<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKWebView/allowsMagnification",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKWebView(py)allowsMagnification"
  },
  "title" : "allowsMagnification"
}
-->

# allowsMagnification

A Boolean value that indicates whether magnify gestures change the web view’s magnification.

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

## Discussion

The default value is <doc://com.apple.documentation/documentation/Swift/false>. You can set the `magnification` property even if `allowsMagnification` is set to <doc://com.apple.documentation/documentation/Swift/false>.

---

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)