Instance Property


The force of the button press.


var force: CGFloat { get }


While all buttons can be “down” or “up”, some physical buttons also have a notion of a “force” with which they are 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

var gestureRecognizers: [UIGestureRecognizer]?

The gesture recognizers that are receiving the press.