Skip to content

Conversation

@rzulkoski
Copy link

@rzulkoski rzulkoski commented Jan 9, 2026

These two changes allow you to know where the ScanResult came from (camera vs gallery) and where within the scanner/gallery image the match was found. In my experience this was much more straightforward to work with than the corners property.

In my use case this was necessary because I am overlaying my own custom viewfinder and want to ignore scan results from outside the viewfinder when the source is camera. I can use the bounding rect and compare it to the frame of my custom viewfinder.

This also fixes an issue where the isGalleryPresented binding wasn't updating properly on simulators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant