WebViewKit
WebViewKit copied to clipboard
How do you eval js on this great tool ?
How do you eval js on this great tool ? I mean to execute javascript code on the current webview page after the webview loaded
Hi @SKbarbon
If you use the WKWebView-based WebView, you can use its evaluateJavaScript as described here:
https://www.hackingwithswift.com/example-code/wkwebview/how-to-run-javascript-on-a-wkwebview-with-evaluatejavascript
You can get the web view reference from the configuration block.
I will add instructions about this to the docs.
Thank you @danielsaidi