<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKWebView/setMagnification(_:centeredAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKWebView(im)setMagnification:centeredAtPoint:"
  },
  "title" : "setMagnification(_:centeredAt:)"
}
-->

# setMagnification(_:centeredAt:)

Scales the page content and centers the result on the specified point.

```
func setMagnification(_ magnification: CGFloat, centeredAt point: CGPoint)
```

## Parameters

`magnification`

The factor by which to scale the content.

`point`

The point (in the web view’s bounds) at which to center magnification.

## Discussion

---

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)