Adding Tap Gesture to Container is not working
I need to dismiss the container when clicked on the container view but adding tap gesture to the container is not working. It should be similar to the "top card" dismiss in your tutorial. can you please let us know how and where exactly we need to add tap gesture.
Add your own background view to the container and put your gesture recognizer on it.
Hi Tim! I am trying to get the presented view controller to dismiss as well. I have tried adding a tap gesture recognizer to a) container b) toView and c) my own background view. I have this down arrow/collapse button that for which I'd like to add a target to hide the bottom card.
Calling hide on my root view controller doesn't work. I'm curious to learn how to get the controller to dismiss on button tap. Screenshot provided, thanks for your help ✨
My app
Should be straightforward. Just call dismiss() from the presenting view controller. You can trigger this from your button. Just like in this sample project.
Other than that, I can’t really troubleshoot your issues based on a screenshot.