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

# trimEnd

The time, in seconds, at which the 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/fromtobyanimation/speed.md)
- [delay](realitykit/fromtobyanimation/delay.md)
- [duration](realitykit/fromtobyanimation/duration.md)
- [offset](realitykit/fromtobyanimation/offset.md)
- [timing](realitykit/fromtobyanimation/timing.md)
- [trimDuration](realitykit/fromtobyanimation/trimduration.md)
- [trimStart](realitykit/fromtobyanimation/trimstart.md)
