I have a UIPanGestureRecognizer I am using to track an object (UIImageView) below a user\'s finger. I only care about motion on the X axis, and if
UIPanGestureRecognizer
UIImageView
Just set recognizer.state in your handlePan(_ recognizer: UIPanGestureRecognizer) method to .ended or .cancelled
recognizer.state
handlePan(_ recognizer: UIPanGestureRecognizer)
.ended
.cancelled