I have a view that's a collection view subview. And If I pan on that view I would like to move that view. But what happens is that collection view scrolls a bit until I turn scrolling off in gesture begin event. So I've tried no just skip the touch event for collection view pan like that:
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool {
if gestureRecognizer == collectionView!.panGestureRecognizer && item.frame.contains(touch.location(in: self.collectionView!)) == true {
return false
}
return true
}
But the problem still persists, collection view still scrolls..