Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernizing BarcodeScanner #217

Open
rlaurb opened this issue Dec 14, 2022 · 0 comments
Open

Modernizing BarcodeScanner #217

rlaurb opened this issue Dec 14, 2022 · 0 comments

Comments

@rlaurb
Copy link

rlaurb commented Dec 14, 2022

There are a number of issues (mostly minor) with using BarcodeScanner with recent versions of Xcode, Swift, and iOS:
(1) Threading Issues: Every time I attempt to read a barcode, I get the following (backtrace omitted):
Thread Performance Checker: -[AVCaptureSession startRunning] should be called from background thread. Calling it on the main thread can lead to UI unresponsiveness
(2) There are a number of deprecations in the code, all easily solved:
(a) protocol definitions (protocol xxx: class {} instead of protocol xxx: AnyObject {})
(b) use of UIApplication.shared.statusBarOrientation
etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant