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

# exposureRectOfInterest

The device’s current exposure rectangle of interest, if it has one.

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

## Discussion

The value of this property is a `CGRect` determining the device’s exposure rectangle of interest. Use this as an alternative to setting [`exposurePointOfInterest`](/documentation/AVFoundation/AVCaptureDevice/exposurePointOfInterest), as it allows you to specify both a location and size. For example, a value of `CGRectMake(0, 0, 1, 1)` tells the device to use the entire field of view when determining the exposure, while `CGRectMake(0, 0, 0.25, 0.25)` indicates the top left sixteenth, and `CGRectMake(0.75, 0.75, 0.25, 0.25)` indicates the bottom right sixteenth. Setting [`exposureRectOfInterest`](/documentation/AVFoundation/AVCaptureDevice/exposureRectOfInterest) throws an `NSInvalidArgumentException` if [`isExposureRectOfInterestSupported`](/documentation/AVFoundation/AVCaptureDevice/isExposureRectOfInterestSupported) returns `false`. Setting [`exposureRectOfInterest`](/documentation/AVFoundation/AVCaptureDevice/exposureRectOfInterest) throws an `NSInvalidArgumentException` if your provided rectangle’s size is smaller than the [`minExposureRectOfInterestSize`](/documentation/AVFoundation/AVCaptureDevice/minExposureRectOfInterestSize). Setting [`exposureRectOfInterest`](/documentation/AVFoundation/AVCaptureDevice/exposureRectOfInterest) throws an `NSGenericException` if you call it without first obtaining exclusive access to the device using [`lockForConfiguration()`](/documentation/AVFoundation/AVCaptureDevice/lockForConfiguration()). Setting [`exposureRectOfInterest`](/documentation/AVFoundation/AVCaptureDevice/exposureRectOfInterest) updates the device’s [`exposurePointOfInterest`](/documentation/AVFoundation/AVCaptureDevice/exposurePointOfInterest) to the center of your provided rectangle of interest. If you later set the device’s [`exposurePointOfInterest`](/documentation/AVFoundation/AVCaptureDevice/exposurePointOfInterest), the [`exposureRectOfInterest`](/documentation/AVFoundation/AVCaptureDevice/exposureRectOfInterest) resets to the default sized rectangle of interest for the new exposure point of interest. If you change your [`activeFormat`](/documentation/AVFoundation/AVCaptureDevice/activeFormat), the point of interest and rectangle of interest both revert to their default values. You can observe automatic changes to the device’s [`exposureRectOfInterest`](/documentation/AVFoundation/AVCaptureDevice/exposureRectOfInterest) by key-value observing this property.

> Note: Setting ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCaptureDevice/exposureRectOfInterest`` alone does not initiate an exposure operation. After setting ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCaptureDevice/exposureRectOfInterest``, set ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCaptureDevice/exposureMode-swift.property`` to apply the new rectangle of interest.

---

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)