<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPress",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPress"
  },
  "title" : "UIPress"
}
-->

# UIPress

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

```
class UIPress
```

## 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`](/documentation/UIKit/UIPress) objects through [`UIEvent`](/documentation/UIKit/UIEvent) objects passed into responder objects for event handling. The [`gestureRecognizers`](/documentation/UIKit/UIPress/gestureRecognizers) property returns the gesture recognizers — instances of a concrete subclass of [`UIGestureRecognizer`](/documentation/UIKit/UIGestureRecognizer) — that are currently handling the given button press.

## Topics

### Getting a press object’s gesture recognizers

[`force`](/documentation/UIKit/UIPress/force)

The force of the button press.

[`gestureRecognizers`](/documentation/UIKit/UIPress/gestureRecognizers)

The gesture recognizers that are receiving the press.

### Responding to press events

[`responder`](/documentation/UIKit/UIPress/responder)

A responder object.

### Getting the press’s location

[`window`](/documentation/UIKit/UIPress/window)

The window in which the press initially occurred.

### Getting press attributes

[`key`](/documentation/UIKit/UIPress/key)

The key pressed or released on a physical keyboard.

[`type`](/documentation/UIKit/UIPress/type)

The type of the specified press.

[`phase`](/documentation/UIKit/UIPress/phase-swift.property)

The current press phase of the object.

[`timestamp`](/documentation/UIKit/UIPress/timestamp)

The time when the press occurred or when it was last mutated.

### Constants

[`UIPress.Phase`](/documentation/UIKit/UIPress/Phase-swift.enum)

Constants that represent the phases of a button press.

[`UIPress.PressType`](/documentation/UIKit/UIPress/PressType)

Constants that represent buttons that a person can press.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)