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

ScanModes, other bug fixes #19

Closed jcedmiston closed 4 years ago

jcedmiston commented 4 years ago

Fixes a bug where the camera preview may not be visible for several seconds after returning from a child view. The main change is to move the preview implementation to viewWillAppear rather than in viewDidAppear. Also removed redundant logic for starting the capture session. In addition, implemented scan modes, once, oncePerCode and continuous.