How to set the frame for DataScannerViewController?

How to set the frame for DataScannerViewController? The default scans the whole camera and I need to specify the frame

Use the DataScannerViewController's .regionOfInterest.

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

How to set the frame for DataScannerViewController?
 
 
Q