Instance Property


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


var isUserInteractionEnabled: Bool { get set }


The default value is false.

See Also

Handling User Input

Controlling User Interaction on Nodes

Enable your node to respond to user input, like touches or mouse clicks.

var focusBehavior: SKNodeFocusBehavior

The focus behavior for a node.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software