This is fixed after iOS16.3 update!!
Post
Replies
Boosts
Views
Activity
Same problem in iOS16.1
AVMetadataObjectTypeQRCode
AVMetadataObjectTypeDataMatrixCode
If you specify the above types, you can scan only at the center of the screen.
(For example in [.ean13, .qr], the EAN-13 barcode is only recognized in the middle)
rectOfinterest does not work in iOS16
https://developer.apple.com/forums/thread/715055