Posts

Post not yet marked as solved
8 Replies
I have run into the same problem when using a PresentationButton. Although in most cases you can swipe down to dismiss the presented view, in my case, I had a MapView in that window, and the scroll view was intercepting the swipe down event. I created a wrapper View that had a button in it, but I'm not sure what that button should do exactly... I tried calling self.hidden() in its action closure, but that didn't do anything. The best I could do for now was disable user interaction on the MapView so that the swipe gesture works, but I would love to know how to dismiss a modally presented view programatically.