'How can I detect if a url has been opened by code scanner and is webView

On a iPhone you can enable code scanner that you can use to scan a qr code. When scanning a qr code that open up a url the code scanner open a webView instead of open Safari directly. Is there a way to detect if page is opened in webView or Native Safari?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source