Im trying to disable the long press on webKit to not let the user Save or Copy in Swift 4.
This is the code im using:
webView.stringByEvaluatingJavaScript(from: "document.body.style.webkitTouchCallout='none';")
I have seen some other answer in objective-c
[webView stringByEvaluatingJavaScriptFromString:@"document.body.style.webkitTouchCallout='none';"];
but converting it to swift it doesn't work.
Thanks in advance for any pointers.