Contents

regionOfInterest

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

Declaration

@MainActor var regionOfInterest: CGRect? { get set }

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