I have code like this
func webViewDidFinishLoad(_ webView: UIWebView) {
let loadStyles = "document.getElementById('platforms').style.display = 'none';"
webView.stringByEvaluatingJavaScript(from: loadStyles)
}
but it's not work in Frame UIWebView. I want to hide the div within the frame on UIWebView. If I change "alert('Hallo World')" in let LoadStyles this code call when app opened. I feel so confused.
please provide me with a solution if you can. Thanks