---
title: numberOfTouches
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uigesturerecognizer/numberoftouches
---

# numberOfTouches

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

## Declaration

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

## Return Value

Return Value The number of UITouch objects in a private array maintained by the receiver. Each of these objects represents a touch in the current gesture.

## Discussion

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:) method.

## See Also

### Getting the touches and location of a gesture

- [location(in:)](uikit/uigesturerecognizer/location(in:).md)
- [location(ofTouch:in:)](uikit/uigesturerecognizer/location(oftouch:in:).md)
