Disable Force-Touch/3D Touch preview on buttons/links #95
Comments
I just discovered this same thing is happening for our app. It doesnt look like the Basecamp app does this, meaning that there is some way to turn it off. (I work on our rails app, not the native app, so this may be a well known option to turn off for ios devs) It also looks like the basecamp app has some special interactions on some links with force touch that I really like. |
In iOS 10, there is a func webView(_ webView: WKWebView, shouldPreviewElement elementInfo: WKPreviewElementInfo) -> Bool {
return false
} |
Is there any way to turn this off in earlier versions of iOS? Looks like our app is 9.0 or higher. |
According this this WebKit post,
So setting |
In my Turbolinks iOS view when someone force touches on a button or link it first opens the preview and then goes to the link in external Safari browser. Can I disable this behaviour? It causes the app experience to break/give a less native experience.
According to https://developer.apple.com/reference/webkit/wkwebview/1415000-allowslinkpreview this behaviour is off by default, but this doesn't seem to be the case for Turbolinks iOS.
Does anyone know what's up?
The text was updated successfully, but these errors were encountered: