Instance Property

focusBehavior

The focus behavior for a node.

Declaration

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.

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