A Boolean value that determines whether user events are ignored and removed from the event queue.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
When set to
false, touch, press, keyboard, and focus events intended for the view are ignored and removed from the event queue. When set to
true, events are delivered to the view normally. The default value of this property is
During an animation, user interactions are temporarily disabled for all views involved in the animation, regardless of the value in this property. You can disable this behavior by specifying the
allow option when configuring the animation.