What font does UIWebView and WKWebView use by default? I would like to be able to change that. But I don\'t want to do it in the html string, inste
UIWebView
WKWebView
There is the swift 3 solution :
func webViewDidFinishLoad(_ webView: UIWebView) { webView.stringByEvaluatingJavaScript(from: "document.getElementsByTagName('body')[0].style.fontFamily =\"-apple-system\"") }
I have just put the default iOS font for this example