Instance Property


The focus behavior for a node.


var focusBehavior: SKNodeFocusBehavior { get set }

See Also

Handling User Input

Controlling User Interaction on Nodes

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

var isUserInteractionEnabled: Bool

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