twostraws / CodeScanner

A SwiftUI view that is able to scan barcodes, QR codes, and more, and send back what was found.
MIT License
1.03k stars 295 forks source link

found each QR code separately in manual mode #104

Closed hossinasaadi closed 1 year ago

hossinasaadi commented 1 year ago

found each QR code separately in manual mode for 2 or more QR in one picture

nathanfallet commented 1 year ago

I think it would be better to call the method with an array, so that we keep the fact that codes where scanned at the same time, calling only once the handler (the handler might not be doing great if called multiple times)

hossinasaadi commented 1 year ago

I think it would be better to call the method with an array, so that we keep the fact that codes where scanned at the same time, calling only once the handler (the handler might not be doing great if called multiple times)

In that case, the completion method should change to an array. BTW, the changes I have made are just like the .continuous mode and I don't think it makes problems

nathanfallet commented 1 year ago

You're right.