An array of press types used to distinguish the type of button press.
SDKs
- iOS 9.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
var allowedPressTypes: [NSNumber] { get set }
Discussion
This property is an array of UIPress
that activates the gesture recognizer to distinguish the type of button press. The default press type is UIPress
. When this property is set to an empty array, the gesture recognizer will respond to taps like a touch pad like surface. For a list of possible press types, see UIPress
enumeration in the UIPress
.