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

Keeping the CodeScannerView Visible #55

Closed craigaps closed 2 years ago

craigaps commented 2 years ago

Hi @twostraws

When the CodeScannerView is in scanMode: .continuous and the default scan interval isn't changed. I'm experiencing success on first attempt at a QR scan, wait 2 seconds, scan the same QR code and the completion block doesn't seem to fire; but wait another 2 seconds and re-scan the same QR code and it will work as expected.

craigaps commented 2 years ago

I figured out what is happening. The view I display over the CodeScannerView was not setting parent.isPresenting on dismiss.