- iOS 3.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
The user must be pressing one or more fingers on a view while they pan it. Clients implementing the action method for this gesture recognizer can ask it for the current translation and velocity of the gesture.
A panning gesture is continuous. It begins (
UIGesture) when the minimum number of fingers allowed (
minimum) has moved enough to be considered a pan. It changes (
UIGesture) when a finger moves while at least the minimum number of fingers are pressed down. It ends (
UIGesture) when all fingers are lifted.
Clients of this class can, in their action methods, query the
UIPan object for the current translation of the gesture (
translation) and the velocity of the translation (
velocity). They can specify the view whose coordinate system should be used for the translation and velocity values. Clients may also reset the translation to a desired value.