---
title: allowedTouchTypes
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uigesturerecognizer/allowedtouchtypes
---

# allowedTouchTypes

An array of touch types used to distinguish type of touches.

## Declaration

```swift
var allowedTouchTypes: [NSNumber] { get set }
```

## Discussion

Discussion This property is an array of touch types that recognizes whether the touch is direct or indirect. For a list of all possible touch types, see UITouch.TouchType enumeration in UITouch. The default value of this property contains all touch types.

## See Also

### Recognizing different gestures

- [allowedPressTypes](uikit/uigesturerecognizer/allowedpresstypes.md)
- [requiresExclusiveTouchType](uikit/uigesturerecognizer/requiresexclusivetouchtype.md)
