---
title: "velocity(value:time:context:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/animation/velocity(value:time:context:)"
---

# velocity(value:time:context:)

Calculates the current velocity of the animation.

## Declaration

```swift
func velocity<V>(value: V, time: TimeInterval, context: AnimationContext<V>) -> V? where V : VectorArithmetic
```

## Return Value

Return Value The current velocity of the animation, or nil if the velocity isn’t available.
