<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameplayKit",
  "identifier" : "/documentation/GameplayKit/GKComponentSystem/update(deltaTime:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameplayKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKComponentSystem(im)updateWithDeltaTime:"
  },
  "title" : "update(deltaTime:)"
}
-->

# update(deltaTime:)

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

```
func update(deltaTime seconds: TimeInterval)
```

## Parameters

`seconds`

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).

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)