<!--
{
  "availability" : [
    "iOS: 16.4.0 -",
    "iPadOS: 16.4.0 -",
    "macCatalyst: 16.4.0 -",
    "macOS: 13.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureDevice/centerStageRectOfInterest",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureDevice(py)centerStageRectOfInterest"
  },
  "title" : "centerStageRectOfInterest"
}
-->

# centerStageRectOfInterest

The effective region within the output pixel buffer to perform Center Stage framing.

```
var centerStageRectOfInterest: CGRect { get set }
```

## Discussion

Apps that require cropping the output from Center Stage can use this property to guide how it performs its framing. The rectangle’s origin is top-left and is relative to the coordinate space of the output pixel buffer. The default value of this property is a rectangle with a normalized (`0`-`1`) coordinate space, where (`0`,`0`) represents the top left of the picture area, and (`1`,`1`) represents the bottom-right of the unrotated picture. The system applies the rectangle of interest prior to rotation, mirroring, or scaling.

> Note:
> Setting this property has no impact on the configuration or output of ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCaptureMetadataOutput`` instances that you associate with a capture session.

Attempting to set a rectangle of interest in the following cases results in the system throwing an illegal argument exception:

- If none of the capture device’s supported formats support Center Stage.
- If the capture device’s [`isCenterStageEnabled`](/documentation/AVFoundation/AVCaptureDevice/isCenterStageEnabled) property value is <doc://com.apple.documentation/documentation/Swift/false>.
- If you specify a value that’s outside the normalized (`0`-`1`)  coordinate space.

> Important:
> Before changing the value of this property, you must call ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCaptureDevice/lockForConfiguration()`` to acquire exclusive access to the device’s configuration properties. Otherwise, setting the value of this property raises an exception. When you’re done configuring the device, call ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCaptureDevice/unlockForConfiguration()`` to release the lock.

---

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)