<!--
{
  "availability" : [
    "iOS: 3.2.0 -",
    "iPadOS: 3.2.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPinchGestureRecognizer",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPinchGestureRecognizer"
  },
  "title" : "UIPinchGestureRecognizer"
}
-->

# UIPinchGestureRecognizer

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

```
@MainActor class UIPinchGestureRecognizer
```

## Overview

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

## Topics

### Interpreting the pinching gesture

[`scale`](/documentation/UIKit/UIPinchGestureRecognizer/scale)

The scale factor relative to the points of the two touches in screen coordinates.

[`velocity`](/documentation/UIKit/UIPinchGestureRecognizer/velocity)

The velocity of the pinch in scale factor per second.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)