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

Provide support for 3D Touch #19

Closed
zacwest opened this issue Feb 27, 2016 · 2 comments · Fixed by #33
Closed

Provide support for 3D Touch #19

zacwest opened this issue Feb 27, 2016 · 2 comments · Fixed by #33

Comments

@zacwest
Copy link
Owner

zacwest commented Feb 27, 2016

I believe the API just gives you a CGPoint so we may need to provide a public getter for the attributes at a point like the -gestureRecognizerShouldBegin: uses.

Need to make sure the gesture recognizers aren't firing at the same time, so we don't smash state around, since they explicitly depend on the UIGR flow for whether the NSLayoutManager & cousins live.

@phillebaba
Copy link

A solution would be to expand the existing delegate methods to forward the UITouch methods, which would be called before the tap completes.

@zacwest
Copy link
Owner Author

zacwest commented Feb 29, 2016

I think the problem there is the API for 3D Touch is:

func previewingContext(_ previewingContext: UIViewControllerPreviewing, viewControllerForLocation location: CGPoint) -> UIViewController?

The UIViewController is queried at time of interest with "what's the UIViewController I should present for this point?" It would probably be pretty complicated to make the delegates keep track of state for this.

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

Successfully merging a pull request may close this issue.

2 participants