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

connot update isGalleryPresented wrappedValue. #67

Closed Norlt closed 1 year ago

Norlt commented 2 years ago

cause Error : - Modifying state during view update, this will cause undefined behavior. ScannerViewController,isGalleryShowing didSet.

截屏2022-05-28 09 32 51
nathanfallet commented 2 years ago

Can you share the piece of code where you call openGallery or change isGalleryPresented's value?

Kurris commented 1 year ago

Also meet this issue when slide down the Gallery Sheet, only work fine through the Cancel Button

kafejo commented 1 year ago

Fixed here https://github.com/twostraws/CodeScanner/pull/106