How can I detect when my WKWebView
is finished loading so that I can fetch the URL from it such as using the delegate method?
I implemented the delegate met
SWIFT 4:
Use following delegate method of WKNavigationDelegate. Where you can check is finished loading ?? And here you can get URL loaded in webView.
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!)
{
let url = webView.url?.absoluteString
print("---Hitted URL--->\(url!)") // here you are getting URL
}