---
title: maximumNumberOfTouches
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspangesturerecognizer/maximumnumberoftouches
---

# maximumNumberOfTouches

The maximum number of touches allowed to recognize this gesture

## Declaration

```swift
var maximumNumberOfTouches: Int { get set }
```

## Discussion

Discussion Set this property to 0 to require exactly minimumNumberOfTouches touches to recognize the gesture. Defaults to NSIntegerMax.
