Instance Method


Called immediately after a scene is presented by a view.


func didMove(to view: SKView)



The view that is presenting the scene.


This method is intended to be overridden in a subclass. You can use this method to implement any custom behavior for your scene when it is about to be presented by a view. For example, you might use this method to create the scene’s contents.

See Also

Presenting a Scene

func sceneDidLoad()

Called immediately after the scene has been initialized or decoded.

func willMove(from: SKView)

Called immediately before a scene is removed from a view.

var view: SKView?

The view that is currently presenting the scene.