---
title: "presses(for:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uipressesevent/presses(for:)"
---

# presses(for:)

Returns the state of all physical buttons in the event that are associated with a particular gesture recognizer.

## Declaration

```swift
func presses(for gesture: UIGestureRecognizer) -> Set<UIPress>
```

## Parameters

- `gesture`: A gesture recognizer.

## Return Value

Return Value The set of UIPress instances that participated in this event that are associated with the gesture recognizer.

## See Also

### Reading the event button presses

- [allPresses](uikit/uipressesevent/allpresses.md)
