Quick question, have been looking around for hours, but can't really find the answer.
I am trying to open a link in safari with swift. The link opens, but the page stays blank.
func webView(_ webView: WKWebView, createWebViewWith configuration: WKWebViewConfiguration, for navigationAction: WKNavigationAction, windowFeatures: WKWindowFeatures) -> WKWebView? {
if navigationAction.targetFrame == nil {
//webView.load(navigationAction.request)
UIApplication.shared.open(navigationAction.request.url!, options: [:], completionHandler: nil)
}
return nil
}
What am I doing wrong here? Am I missing something in my plist?
Your input is highly appreciated.
I have been learning swift for a few weeks now, but this problem has been kicking my ass for a while now.
Kind Regards,
Wesley