---
title: isUserInteractionEnabled
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiview/isuserinteractionenabled
---

# isUserInteractionEnabled

A Boolean value that determines whether user events are ignored and removed from the event queue.

## Declaration

```swift
var isUserInteractionEnabled: Bool { get set }
```

## Mentioned in

Handling long-press gestures Handling pan gestures Handling pinch gestures Handling rotation gestures Handling swipe gestures Handling tap gestures

## Discussion

Discussion 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 true. 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 allowUserInteraction option when configuring the animation. note: Some UIKit subclasses override this property and return a different default value. See the documentation for that class to determine if it returns a different value.

## See Also

### Configuring the event-related behavior

- [isMultipleTouchEnabled](uikit/uiview/ismultipletouchenabled.md)
- [isExclusiveTouch](uikit/uiview/isexclusivetouch.md)
