Press
An object that represents the presence or movement of a button press on the screen for a particular event.
open class Press
Inheritance
Equatable
, Hashable
Properties
force
The force of the button press.
open private(set) var force: Double
gestureRecognizers
The gesture recognizers that are receiving the press.
open private(set) var gestureRecognizers: [GestureRecognizer]?
responder
A Responder
object.
open private(set) var responder: Responder?
window
The window in which the press initially occurred.
open private(set) var window: Window?
key
false
- ``` swift open private(set) var key: Key? ```
type
The type of the specified press.
open private(set) var type: Press.PressType
phase
The current press phase of the object.
open private(set) var phase: Press.Phase
timestamp
The time when the press occurred or when it was last mutated.
open private(set) var timestamp: TimeInterval
Methods
hash(into:)
public func hash(into hasher: inout Hasher)
Operators
==
public static func ==(_ lhs: Press, _ rhs: Press) -> Bool