twostraws / CodeScanner

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

Scan second time not work #98

Closed GilbertoSantaniello closed 1 year ago

GilbertoSantaniello commented 1 year ago

Nothing happens if I try to take the scanner a second time after the first time is ok. I have to close the view and reopen it

nathanfallet commented 1 year ago

You need to set scanMode to something else than .once (or .oncePerCode if it's the same code you scan).