twostraws / CodeScanner

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

restart scanner fix #13

Closed rajubd49 closed 4 years ago

rajubd49 commented 4 years ago

Fixed an issue where restart/reset scanner from the same view was not working because of codeFound condition. Removing this condition raised another problem of found(code:) being called multiple times for a single scan. To solve this issue, used scanInterval so that found(code:) not called multiple times.

twostraws commented 4 years ago

As I said in #12 I think this requires more thought.