Post not yet marked as solved
Post marked as unsolved with 0 replies, 135 views
I have a SpriteKit scene using UITouch to drag and drop. That works. I have also an SKCameranode and a pinchGesture so you can pinch to zoom in and out of the scene. That works too. Lastly, I set up a panGesture so that you can pan the scene when it is zoomed in. That also works, but it conflicts with the drag and drop. The drag and drop works when the scene first loads, but if you zoom in on the scene, you can no longer drag and drop because it just tries to pan, and even if you zoom back out to normal size, the drag and drop function remains messed up and will only partially move.
I know there are instructions on how to allow simultaneous gestures or how to prefer one gesture over another, but only UIGestureRecognizer is mentioned in Apple's explanation of those. I didn't see anything about UITouch. Is there a way to make touches using UITouch and UIGestureRecognizers not conflict with each other?