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

# shouldMerge(previous:value:time:context:)

Returns a Boolean value that indicates whether the current animation should merge with a previous animation.

## Declaration

```swift
func shouldMerge<V>(previous: Animation, value: V, time: TimeInterval, context: inout AnimationContext<V>) -> Bool where V : VectorArithmetic
```
