Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

longpressable and iPhone 6s 3D Touch #758

Open
hugoerg56 opened this issue Nov 6, 2015 · 2 comments
Open

longpressable and iPhone 6s 3D Touch #758

hugoerg56 opened this issue Nov 6, 2015 · 2 comments

Comments

@hugoerg56
Copy link

On the simulator I can't test this, but any of you know if the longpress action will interfere with Iphone 6s 3D touch or some like that? the real question is "the longpress action works fine on the iPhone 6s?"

@markrickert
Copy link
Contributor

hmmm... as soon as i get access to a device is force touch i'll check this. Some work has already been done to support easy force touch recognition on bubblewrap (rubymotion-community/BubbleWrap#478).

From a brief glance at the documentation for 3D touch a view controller has to "register itself" in order to use 3D touch, so longpressable should work just fine so long as you don't call this method in your view controller:

- (id<UIViewControllerPreviewing>)registerForPreviewingWithDelegate:(id<UIViewControllerPreviewingDelegate>)delegate
                                                         sourceView:(UIView *)sourceView

@hboon
Copy link

hboon commented Nov 23, 2015

A rule of thumb I have been applying for my own apps is: replace long presses with force touch (where reasonable) and fall back to long presses when it's not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants