A discrete gesture recognizer that interprets pinching gestures involving two touches.
- iOS 3.2+
- Mac Catalyst 13.0+
UIPinch is a concrete subclass of
The user must press two fingers on a view while pinching it. When the user moves the two fingers toward each other, the conventional meaning is zoom out; when the user moves the two fingers away from each other, the conventional meaning is zoom in.
Pinching is a continuous gesture. The gesture begins (
UIGesture) when the user moves the two fingers enough to create a pinch gesture. The gesture changes (
UIGesture) when a finger moves (while both fingers remain touching). The gesture ends (
UIGesture) when the user lifts both fingers from the view.