badoo / badoo/Chatto

Disabling 3D Touch from opening webviews on UITextView?

Open
#716 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
4.6k
Forks
588
PR merge metrics
No merged PRs in 30d

Description

outes the user to a different part of the app.

I noticed that on iOS 9, with 3d touch, users can now force touch the links which opens up a Safari webview. Often this creates a really bad user experience, or opens up parts of my website, which I don't want on the app.

Is there any way I can disable this?

I'm delegating textView:shouldInteractWithURLinRange: but this method isn't getting called at all for 3d touches...only regular taps.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the iOS 9 3D Touch behavior on a UITextView containing links, then inspect the textView:shouldInteractWithURLinRange: delegate path mentioned in the issue. Confirm how force-touch interactions reach the webview and determine whether the requested opt-out belongs in Chatto. Done means 3D Touch no longer opens the webview when disabled, while regular link taps retain their expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.