---
title: "settlingDuration(fromValue:toValue:initialVelocity:epsilon:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/spring/settlingduration(fromvalue:tovalue:initialvelocity:epsilon:)"
---

# settlingDuration(fromValue:toValue:initialVelocity:epsilon:)

The estimated duration required for the spring system to be considered at rest.

## Declaration

```swift
func settlingDuration<V>(fromValue: V, toValue: V, initialVelocity: V, epsilon: Double) -> TimeInterval where V : Animatable
```

## Discussion

Discussion The epsilon value specifies the threshold for how small all subsequent values need to be before the spring is considered to have settled.

## See Also

### Calculating forces and durations

- [force(target:position:velocity:)](swiftui/spring/force(target:position:velocity:).md)
- [force(fromValue:toValue:position:velocity:)](swiftui/spring/force(fromvalue:tovalue:position:velocity:).md)
- [settlingDuration(target:initialVelocity:epsilon:)](swiftui/spring/settlingduration(target:initialvelocity:epsilon:).md)
