Getting the link URL tapped in WKWebView
问题 I want to get the url of a tapped link in WKWebView . The links are in a custom format that will trigger certain actions in the app. e.g. http://my-site/help#deeplink-intercom . I am using KVO like so: override func loadView() { let webConfiguration = WKWebViewConfiguration() webView = WKWebView(frame: .zero, configuration: webConfiguration) webView.navigationDelegate = self webView.addObserver(self, forKeyPath: "URL", options: .new, context: nil) view = webView } override func observeValue