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

# setMagnification(_:centeredAt:)

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

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

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.

---

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)