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

# setMagnification(_:centeredAt:)

Scales the video’s view by a specified factor, and centers the result on a specified point.

## Declaration

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

## Parameters

- `magnification`: A factor by which to scale the video’s view.
- `point`: A point in view space on which to center magnification.

## Discussion

Discussion The supported magnification range is 1.0 to 64.0. The system zooms using nearest neighbor interpolation after it scales the content past a certain factor.

## See Also

### Magnifying video

- [allowsMagnification](avkit/avplayerview/allowsmagnification.md)
- [magnification](avkit/avplayerview/magnification.md)
