<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIView/isUserInteractionEnabled",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIView(py)userInteractionEnabled"
  },
  "title" : "isUserInteractionEnabled"
}
-->

# isUserInteractionEnabled

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

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

## Discussion

When set to <doc://com.apple.documentation/documentation/Swift/false>, touch, press, keyboard, and focus events intended for the view are ignored and removed from the event queue. When set to <doc://com.apple.documentation/documentation/Swift/true>, events are delivered to the view normally. The default value of this property is <doc://com.apple.documentation/documentation/Swift/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`](/documentation/UIKit/UIView/AnimationOptions/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)