I have an app that allows users to open URLs. These can be handled via a SafariView, but if an app has registered to handle the URL, I'd like to use:
if UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
}
However, this seems to fallback on opening Safari. I'd like to fallback on just using SafariView inside my own app for this case. Is it possible to selectively choose which external apps are used?