---
title: trimEnd
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/blendtreeanimation/trimend
---

# trimEnd

The optional time, in seconds, at which the source animation stops.

## Declaration

```swift
var trimEnd: TimeInterval? { get set }
```

## Discussion

Discussion This property is nil by default, which plays the animation until time = duration. If you set a value, the animation edits the duration according to the specified ending time.

## See Also

### Timing the animation

- [speed](realitykit/blendtreeanimation/speed.md)
- [delay](realitykit/blendtreeanimation/delay.md)
- [duration](realitykit/blendtreeanimation/duration.md)
- [offset](realitykit/blendtreeanimation/offset.md)
- [trimDuration](realitykit/blendtreeanimation/trimduration.md)
- [trimStart](realitykit/blendtreeanimation/trimstart.md)
