I have an app at the moment that when a button is pushed on the first screen does some work and makes a URL, and then does
[[UIApplication sharedApplication] op
Since this is the top result on Google, if you can use WKWebView instead of UIWebView, you should.
WKWebView
UIWebView
import WebKit let webViewConfiguration = WKWebViewConfiguration() let webView = WKWebView(frame: CGRect(), configuration: webViewConfiguration)