---
title: UIPinchGestureRecognizer
framework: uikit
role: symbol
role_heading: Class
path: uikit/uipinchgesturerecognizer
---

# UIPinchGestureRecognizer

A continuous gesture recognizer that interprets pinching gestures involving two touches.

## Declaration

```swift
@MainActor class UIPinchGestureRecognizer
```

## Mentioned in

Handling pinch gestures

## Overview

Overview UIPinchGestureRecognizer is a concrete subclass of UIGestureRecognizer. 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 (UIGestureRecognizer.State.began) when the user moves the two fingers enough to create a pinch gesture. The gesture changes (UIGestureRecognizer.State.changed) when a finger moves (while both fingers remain touching). The gesture ends (UIGestureRecognizer.State.ended) when the user lifts both fingers from the view.

## Topics

### Interpreting the pinching gesture

- [scale](uikit/uipinchgesturerecognizer/scale.md)
- [velocity](uikit/uipinchgesturerecognizer/velocity.md)

## Relationships

### Inherits From

- [UIGestureRecognizer](uikit/uigesturerecognizer.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Standard gestures

- [Handling UIKit gestures](uikit/handling-uikit-gestures.md)
- [Coordinating multiple gesture recognizers](uikit/coordinating-multiple-gesture-recognizers.md)
- [Adopting hover support for Apple Pencil](uikit/adopting-hover-support-for-apple-pencil.md)
- [Supporting gesture interaction in your apps](uikit/supporting-gesture-interaction-in-your-apps.md)
- [UIHoverGestureRecognizer](uikit/uihovergesturerecognizer.md)
- [UILongPressGestureRecognizer](uikit/uilongpressgesturerecognizer.md)
- [UIPanGestureRecognizer](uikit/uipangesturerecognizer.md)
- [UIRotationGestureRecognizer](uikit/uirotationgesturerecognizer.md)
- [UIScreenEdgePanGestureRecognizer](uikit/uiscreenedgepangesturerecognizer.md)
- [UISwipeGestureRecognizer](uikit/uiswipegesturerecognizer.md)
- [UITapGestureRecognizer](uikit/uitapgesturerecognizer.md)
