ios3dtouch

Disable 3D touch for iOS application


I have an application that present webViews.

This WebViews present links that I want to handle by myself.

Everything is working great using the delegate methods, but I have a problem when the user is using force touch. In that case, the iOS is making the transition to the link via safari without going listening to my delegate.

My question is - How can I remove the force touch from my app?

Thanks


Solution

  • The way to remove 3d touch from your web view is -

    yourWebView.allowsLinkPreview = false