I was wondering if there is a way to detect a link in a UIWebView without clicking on the urls? for example, if the page has a PDF file, it automatically gets its link. I know that with a webview delegate, I can detect URLs like the following:
func webView(_ webView: UIWebView, shouldStartLoadWith request: URLRequest, navigationType: UIWebViewNavigationType) -> Bool { if navigationType == .linkClicked { print(request.url?.absoluteString) } return true }
but is there a way to detect links without a click?
ios iphone xcode swift uiwebview
Mc.lover
source share