In UIWebView it was pretty easy to add UIDataDetectorTypes to the view:
myUIWebView.dataDetectorTypes = UIDataDetectorTypePhoneNumber;
And so on. However, WKWebView does not seem to have a similar property. This link mentions that it went into the WKWebViewConfiguration property in myWebKitView.configuration , but the official documentation and the headers themselves do not reference dataDetectorTypes .
I am currently trying to port an application using UIWebView to WKWebView , and this application is currently being configured by user UIDataDetectorTypes . So, is there a way to implement this using the provided API, or will I have to write my own code to parse the HTML?
source share