---
title: "update(value:velocity:target:deltaTime:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/spring/update(value:velocity:target:deltatime:)"
---

# update(value:velocity:target:deltaTime:)

Updates the current  value and velocity of a spring.

## Declaration

```swift
func update<V>(value: inout V, velocity: inout V, target: V, deltaTime: TimeInterval) where V : VectorArithmetic
```

## Parameters

- `value`: The current value of the spring.
- `velocity`: The current velocity of the spring.
- `target`: The target that value is moving towards.
- `deltaTime`: The amount of time that has passed since the spring was at the position specified by value.
