---
title: UIPress
framework: uikit
role: symbol
role_heading: Class
path: uikit/uipress
---

# UIPress

An object that represents the presence or movement of a button press on the screen for a particular event.

## Declaration

```swift
class UIPress
```

## Overview

Overview The press specifically encapsulates the pressing of some physically actuated button. All of the press types represent actual physical buttons on one of a variety of remotes. You access UIPress objects through UIEvent objects passed into responder objects for event handling. The gestureRecognizers property returns the gesture recognizers — instances of a concrete subclass of UIGestureRecognizer — that are currently handling the given button press.

## Topics

### Getting a press object’s gesture recognizers

- [force](uikit/uipress/force.md)
- [gestureRecognizers](uikit/uipress/gesturerecognizers.md)

### Responding to press events

- [responder](uikit/uipress/responder.md)

### Getting the press’s location

- [window](uikit/uipress/window.md)

### Getting press attributes

- [key](uikit/uipress/key.md)
- [type](uikit/uipress/type.md)
- [phase](uikit/uipress/phase-swift.property.md)
- [timestamp](uikit/uipress/timestamp.md)

### Constants

- [UIPress.Phase](uikit/uipress/phase-swift.enum.md)
- [UIPress.PressType](uikit/uipress/presstype.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Button presses

- [UIPressesEvent](uikit/uipressesevent.md)
