---
title: "value(target:initialVelocity:time:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/spring/value(target:initialvelocity:time:)"
---

# value(target:initialVelocity:time:)

Calculates the value of the spring at a given time given a target amount of change.

## Declaration

```swift
func value<V>(target: V, initialVelocity: V = .zero, time: TimeInterval) -> V where V : VectorArithmetic
```

## See Also

### Getting spring state

- [value(fromValue:toValue:initialVelocity:time:)](swiftui/spring/value(fromvalue:tovalue:initialvelocity:time:).md)
- [velocity(target:initialVelocity:time:)](swiftui/spring/velocity(target:initialvelocity:time:).md)
- [velocity(fromValue:toValue:initialVelocity:time:)](swiftui/spring/velocity(fromvalue:tovalue:initialvelocity:time:).md)
