I have an UILabel
object which is in a continuous animation using a UIView.animate()
option. This is working as expected.
I then added a pan gesture (UIPanGestureRecognizer
) to this object. However, it does not respond to any pan action while animating. The associated action method is not even invoked based on the debugging that I did. As soon as I disabled its animation, the action method gets triggered when panned and the label handles the gesture correctly. I am wondering if I should suspend its animation when the relevant gesture is initiated. The issue is the action method is not being invoked at all, so I am unsure how to achieve that.
Any suggestion is appreciated. Thank you.