-
Notifications
You must be signed in to change notification settings - Fork 265
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
Swipe down to close? #379
Comments
It's not supported. You could try adding a gesture recognizer or looking at the drawer position changes. |
I am search that functionality too. I thought that it works that way out of the box. But not. |
Sadly, but "UISwipeGestureRecognizer.direction = .down" don't work too. So, seems "Swipe down to close" is not possible. It should be handled from Pulley, not externally. |
Found solution to close from bottom position without gesture:
|
+1 for this, I'm not sure why this is not supported because sounds like a common feature to allow user to swipe down to dismiss the drawer |
Maybe somebody will find it useful. With ARGAMX workaround when drawer in .collapsed state it no longer moves down with finger. You can achieve closing with swipe even in this position, but it looks and feels unnatural. As workaround for this problem I've decided to sacrifice one of possible drawer positions and redefine heights, so .collapsed state is now 0 pixels height, and .partiallyRevealed is equal to previous .collapsed. Now I don't have .partiallyRevealed state at all, but have smooth transitions between any states and swipe to close imitation looking natural. If you don't want to sacrifice positions, you can add one more, but it can be pretty complicated task. |
By default, you cannot swipe down from a "collapsed" state to a "closed" state. Is this supported out of the box via some property? If not, what is the best way to achieve this?
Thanks.
The text was updated successfully, but these errors were encountered: