We have QR-scanner feature implemented on web view (WKWebView). If it's dark we want to light our QR-code using flashlight in iPhone. In general, this feature works, but without flashlight.
But have that problems:
- If we turn on torch then camera preview disappears.
- If turn off torch then camera preview appears.
Do you have any idea why it's so? And how can we sort it out? Thanks