Hang Risk warning from Xcode in CBScanner.swift
Xcode warns on this line: uiView.session?.startRunning() -[AVCaptureSession startRunning] should be called from background thread. Calling it on the main thread can lead to UI unresponsiveness
There is explicit guidance by Apple to not call startRunning on the main thread though. See the text in the yellow box:
https://developer.apple.com/documentation/avfoundation/avcapturesession?language=objc
This suggests you shouldn't call it on the main thread.
That's why I request a pull of the modification.
Sorry I would like to know will this issue be fixed?
This thread would help, just add async background dispatch queue, right?
https://developer.apple.com/forums/thread/722309