Instance Method


Called immediately before a scene is removed from a view.


func willMove(from 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 removed from the view.

See Also

Presenting a Scene

func sceneDidLoad()

Called immediately after the scene has been initialized or decoded.

func didMove(to: SKView)

Called immediately after a scene is presented by a view.

var view: SKView?

The view that is currently presenting the scene.