m1entus / MZFormSheetPresentationController

MZFormSheetPresentationController provides an alternative to the native iOS UIModalPresentationFormSheet, adding support for iPhone and additional opportunities to setup UIPresentationController size and feel form sheet.
MIT License
973 stars 146 forks source link

allowDismissByPanningPresentedView does not work with left/right panning #78

Open phatmann opened 8 years ago

phatmann commented 8 years ago

If my view slides in from the left and I have allowDismissByPanningPresentedView set to true, I would expect a pan gesture on the view to the left to dismiss the view. However, I can only pan the view up and down. Furthermore, when I pan up the view moves down and vice versa. The up/down pan gestures do not dismiss the view, but I would not expect them to do so.

m1entus commented 8 years ago

Feel free to make PR with functionality

phatmann commented 8 years ago

I took a look at the relevant code but found it difficult to follow. Can you tell me the general intent of the pan gestures?

m1entus commented 8 years ago

By using pan gestures you can dismiss using some of edges of presented controller or by holding finger on presented view controller and slide it

phatmann commented 8 years ago

Can you tell me exactly what those intended gestures are?