WebView: get displayed text from link

Viewed 12

I have a webView in a viewcontroller. I get the url from the link when a clicked on it:

func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {        
        if let url = webView.url?.absoluteString{
            print("url = \(url)")         
 }

Is there a possibility to get the displayed text from the link when I clicked on it?

0 Answers
Related