Instance Method

didApplyConstraints(for:)

Tells you to peform any necessary logic after constraints are applied.

Declaration

optional func didApplyConstraints(for scene: SKScene)

Parameters

scene

The scene that is being animated.

Discussion

Do not call this method directly; it is called by the system exactly once per frame, so long as the scene is presented in a view and is not paused. It is called after any enabled constraints in the scene have been applied.

Any additional actions applied are not evaluated until the next update.

Any changes to physics bodies is not simulated until the next update.

Any changes to constraints will not be applied until the next update.

See Also

Handling Animation Events

Use SpriteKit Objects within Scene Delegate Callbacks

Follow threading guidelines to keep your SpriteKit app thread safe.

func update(TimeInterval, for: SKScene)

Tells you to perform any app specific logic to update your scene.

func didEvaluateActions(for: SKScene)

Tells you to peform any necessary logic after scene actions are evaluated.

func didSimulatePhysics(for: SKScene)

Tells you to peform any necessary logic after physics simulations are performed.

func didFinishUpdate(for: SKScene)

Tells you to peform any necessary logic after the scene has finished all of the steps required to process animations.