---
title: allowedPressTypes
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uigesturerecognizer/allowedpresstypes
---

# allowedPressTypes

An array of press types used to distinguish the type of button press.

## Declaration

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

## Discussion

Discussion This property is an array of UIPressTypes that activates the gesture recognizer to distinguish the type of button press. The default press type is UIPress.PressType.select. When this property is set to an empty array, the gesture recognizer will respond to taps like a touch pad like surface. For a list of possible press types, see UIPress.PressType enumeration in the UIPress.

## See Also

### Recognizing different gestures

- [allowedTouchTypes](uikit/uigesturerecognizer/allowedtouchtypes.md)
- [requiresExclusiveTouchType](uikit/uigesturerecognizer/requiresexclusivetouchtype.md)
