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

Restarting scanner #9

Closed luciano88 closed 3 years ago

luciano88 commented 4 years ago

When a qr Code is detected, codeFound is set to true and the scanner stops detecting new codes, even if I refresh the view (the coordinator is not initialized again). How can I restart the scanner after the completion is executed?

rajubd49 commented 4 years ago

I'm also facing the same issue. Please check the fix here at https://github.com/rajubd49/CodeScanner/commit/b3d07fa60c2a48d42ef8b1e550d4ff95b040a636

I've created a pull request for this fix.

twostraws commented 3 years ago

@rajubd49 Thank you!

haemi commented 3 years ago

how does the restart work? Do you use the coordinator for that?