-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
I have TouchDrawView in a VC that is presented as form sheet, the default behavior now on iOS 13. Trying to draw lines going roughly from top to bottom invokes the VC dismissal gesture instead of the actual drawing:
According to https://stackoverflow.com/questions/56718552/disable-gesture-to-pull-down-form-page-sheet-modal-presentation the TouchDrawView should override gestureRecognizerShouldBegin and return false.
I did some experiments and adding
extension TouchDrawView {
open override func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
return !(gestureRecognizer is UIPanGestureRecognizer)
}
}seems to work OK, but I am not sure it is the best way to go.
Metadata
Metadata
Assignees
Labels
No labels
