TouchDraw
TouchDraw copied to clipboard
Prevent drop down to dismiss gesture in modal presentations (iOS 13)
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
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:
@fl034 Are there cases where you'd want to dismiss the view and this will prevent you from being able to?
@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?