TouchDraw icon indicating copy to clipboard operation
TouchDraw copied to clipboard

Prevent drop down to dismiss gesture in modal presentations (iOS 13)

Open fl034 opened this issue 4 years ago • 3 comments

When TouchDrawView is embedded in a modal presentation in iOS 13, the user can drag to dismiss. This interferes with the drawing.

This PR fixes that like in the accepted answer here (method no. 3): https://stackoverflow.com/a/57635168/4846592

fl034 avatar Dec 04 '19 14:12 fl034

Hey @fl034, thanks for the PR! Sorry I din't see this until now. I will verify on my end and then get it merged :+1:

dehli avatar Dec 17 '19 13:12 dehli

@fl034 Are there cases where you'd want to dismiss the view and this will prevent you from being able to?

dehli avatar Dec 19 '19 22:12 dehli

@fl034 Are there cases where you'd want to dismiss the view and this will prevent you from being able to?

@dehli yeah maybe some user has isUserInteractionEnabled set to false to disable drawing temporarily. We could check for this case in the gestureRecognizerShouldBegin function. What do you think?

fl034 avatar Dec 23 '19 12:12 fl034