---
title: force
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uipress/force
---

# force

The force of the button press.

## Declaration

```swift
var force: CGFloat { get }
```

## Discussion

Discussion While all buttons can be “down” or “up”, some physical buttons also have a notion of a “force” with which they’re pressed. For analog buttons, force returns a value between 0 and 1, and for digital buttons it returns 0 or 1.

## See Also

### Getting a press object’s gesture recognizers

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