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

Trigger on click in UISearch and dismiss in cancel #17

Closed
isaiasmac opened this issue Apr 7, 2020 · 1 comment
Closed

Trigger on click in UISearch and dismiss in cancel #17

isaiasmac opened this issue Apr 7, 2020 · 1 comment

Comments

@isaiasmac
Copy link

I want to show the modal when I click in UISearchBar and hide it when I pressed the cancel button. How can I archive that ?

I'm trying to simulate a PanGesture but nothings happens.

@OfTheWolf
Copy link
Owner

OfTheWolf commented Apr 7, 2020

@isaiasmac I guess you wanna show the sheet at top on search click and show at bottom on dismiss. If this is what you want you should use:

changePosition(to: .top)  //on search click
changePosition(to: .bottom) //on dismiss

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

2 participants