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

Support three-finger undo/redo gestures outside text fields #1127

Open
nolanw opened this issue Dec 29, 2021 · 0 comments
Open

Support three-finger undo/redo gestures outside text fields #1127

nolanw opened this issue Dec 29, 2021 · 0 comments
Labels
Bug Something that doesn't work the way it should

Comments

@nolanw
Copy link
Member

nolanw commented Dec 29, 2021

https://twitter.com/featherless/status/1476043571874742272

This means 3-finger gestures will feel inconsistently supported by most iOS apps, which in turn means users will be less likely to trust it even if they have found it, which is all too bad because it actually is much nicer than shaking your phone :)

Can we make this better? Yes!

You can "force" 3-finger gestures to be enabled in your app using the following snippet:

let tf = UITextField()
view.addSubview(tf)
tf.becomeFirstResponder()
tf.resignFirstResponder()
tf.removeFromSuperview()

Note that the view needs to be attached to a window.

@nolanw nolanw added the Bug Something that doesn't work the way it should label Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something that doesn't work the way it should
Projects
None yet
Development

No branches or pull requests

1 participant