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

# numberOfTouches

The number of touches involved in the gesture represented by the gesture recognizer.

```
var numberOfTouches: Int { get }
```

## Return Value

The number of [`UITouch`](/documentation/UIKit/UITouch) objects in a private array maintained by the receiver. Each of these objects represents a touch in the current gesture.

## Discussion

Using the value returned by this method in a loop, you can ask for the location of individual touches using the [`location(ofTouch:in:)`](/documentation/UIKit/UIGestureRecognizer/location(ofTouch:in:)) method.

---

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)