twostraws / CodeScanner

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

isTorchOn no longer working #117

Closed mhesham93 closed 4 months ago

mhesham93 commented 10 months ago

For some reason the isTorchOn no longer works. It turns on for a second then turns off on it's own.

iOS 16.6.1

nitricware commented 7 months ago

Are you sure you're using the most recent version? This should be fixed in #85 ...

mhesham93 commented 7 months ago

Are you sure you're using the most recent version? This should be fixed in #85 ...

It's still happening as of iOS 17.1.2 (iPh 15 Pro Max). The flash turns on for a second then switches off the moment the sheet is presented.

Edit: I just went through the comments in #85 and I'm experiencing the same issue, even when setting the flag to a constant value.

Thank you

nitricware commented 7 months ago

Sorry, I meant the most recent CodeScanner version not iOS version (2.3.3)

Because exactly what you describe happened to me in versions prior.

I currently have an App published that uses CodeScanner 2.3.3 and it does not have that issue: https://apps.apple.com/at/app/pstart/id1488221355?l=en-GB

nathanfallet commented 4 months ago

Is the issue still happening? If yes please reopen. But as said it should be fixed for a while.