---
title: isUserInteractionEnabled
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/sknode/isuserinteractionenabled
---

# isUserInteractionEnabled

A Boolean value that indicates whether the node receives touch events.

## Declaration

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

## Mentioned in

Controlling User Interaction on Nodes Understanding Hit-Testing

## Discussion

Discussion The default value is false. important: In addition to setting isUserInteractionEnabled to true, you must subclass the node and define event callbacks in order to respond to user input.

## See Also

### Handling User Input

- [Controlling User Interaction on Nodes](spritekit/controlling-user-interaction-on-nodes.md)
- [focusBehavior](spritekit/sknode/focusbehavior.md)
