---
title: regionOfInterest
framework: visionkit
role: symbol
role_heading: Instance Property
path: visionkit/datascannerviewcontroller/regionofinterest
---

# regionOfInterest

The area of the live video in view coordinates that the data scanner searches for items.

## Declaration

```swift
@MainActor var regionOfInterest: CGRect? { get set }
```

## Discussion

Discussion If you add interface objects to the live video (using the overlayContainerView property) that might hide items from a person, set this property to restrict the scanning area. The default value is the bounds of the view.

## See Also

### Customizing the interface

- [overlayContainerView](visionkit/datascannerviewcontroller/overlaycontainerview.md)
