Post

Replies

Boosts

Views

Activity

Reply to get current url of wkwebview (Swift iOS)
I think this may work - extension CCVAddCardViewController: WKUIDelegate, WKNavigationDelegate {   func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) {     if let urlStr = navigationAction.request.url?.absoluteString {       print(urlStr)     }     decisionHandler(.allow)   } }
Apr ’22