Instance Method


Tells all component instances managed by the system to perform their custom periodic actions.


func update(deltaTime seconds: TimeInterval)



The time step to use for any time-dependent actions to be performed by components (typically, the elapsed time since the previous call to this method).


Typically, you call this method in response to a per-frame game loop method such as update(_:) (SpriteKit) or renderer(_:updateAtTime:) (SceneKit). GameplayKit then forwards to the update(deltaTime:) method of all GKComponent subclass objects managed by the component system, allowing you to execute per-frame logic for each component instance in a deterministic order.

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