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

# animate(value:time:context:)

Calculates the current value of the animation.

## Declaration

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

## Return Value

Return Value The current value of the animation, or nil if the animation has finished.
