The current state of the gesture recognizer.
- iOS 3.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
The possible states a gesture recognizer can be in are represented by the constants of type
UIGesture. Some of these states are not applicable to discrete gestures. The read-only version of the
state property is intended for clients of a gesture-recognizer class and not subclasses.
UIGesture must use a read-write version of the state property. They get this redeclaration when they import the
UIGesture header file:
Recognizers for discrete gestures transition from
recognized. Recognizers for continuous gesture transition from
UIGesture to these phases in the given order:
UIGesture. If, however, they receive a cancellation touch, they should transition to
UIGesture. If recognizers for continuous gestures can’t interpret a multi-touch sequence as their gesture, they transition to