---
title: "setMagnification(_:centeredAt:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkwebview/setmagnification(_:centeredat:)"
---

# setMagnification(_:centeredAt:)

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

## Declaration

```swift
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.

## See Also

### Scaling content

- [pageZoom](webkit/wkwebview/pagezoom.md)
- [allowsMagnification](webkit/wkwebview/allowsmagnification.md)
- [magnification](webkit/wkwebview/magnification.md)
