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

Crashing when no camera permissions set yet #87

Closed schultzjim closed 1 year ago

schultzjim commented 1 year ago

I am getting a crash in ScannerViewController line 178 when there are no camera permissions set yet, it presents the permissions prompt but then crashes. after approving and relaunching it no longer crashes. I'm happy to help out with a fix etc just wanted to submit this first.

ian-sayles commented 1 year ago

Hi Jim

Are you using the latest version, for I had similar issue which was just recently fixed. https://github.com/twostraws/CodeScanner/issues/77#issue-1343243500

Since upgrading to version 2.2.1, I have had no issues.

schultzjim commented 1 year ago

@ian-sayles that did that trick, thanks