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

Hide dropDownMenu when tapping outside its bounds #16

Closed
olbartek opened this issue Oct 9, 2015 · 5 comments
Closed

Hide dropDownMenu when tapping outside its bounds #16

olbartek opened this issue Oct 9, 2015 · 5 comments

Comments

@olbartek
Copy link

olbartek commented Oct 9, 2015

Hello, is it possible to hide menu when a user taps outside its bounds? If not, could you give me a hint to which view should I add a tapGestureRecognizer?

Thanks in advance

@justindhill
Copy link
Contributor

Hi, I needed this as well, so I implemented it in PR #22. If you still need it, you can find it in https://github.com/justindhill/BTNavigationDropdownMenu/tree/tap-background-to-dismiss

@TheBogueRat
Copy link

Thanks, this should be pulled into the main branch. Now I'm only missing a way to dismiss the menu on back navigation... The other issue's solution did not work for me.

@justindhill
Copy link
Contributor

Glad it helped you!

@SjoerdPerfors
Copy link

Thanks, needed this as wel 👍

@PhamBaTho
Copy link
Owner

@olbartek @TheBogueRat @SjoerdPerfors: Merged PR of @justindhill in release 0.2. Thanks!

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

5 participants