I have an AVCaptureDevice
to display a live camera preview on screen.
When a Touch ID view is overlaid on the camera preview (using CAContext
's evaluatePolicy
), the camera preview freezes. When the Touch ID view is dismissed, the camera preview flashes a black screen before restarting.
Both the freezing and the black screen flash are problematic. How can I keep the camera preview alive with the Touch ID view overlaid?
I'm not sure that this is possible. The app seems to lose control when the Touch ID alert is on the screen. I know that our app doesn't get rotation events when the dialog is up, and I know when I examine the view hierarchy with Reveal.app I don't see the Touch ID view in my hierarchy.
Can you run the camera in a background mode? That might do the trick, but I don't think camera use is permitted in the background.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With