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

# trimEnd

The optional 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 the end frame interval. If you set a value, the animation subtracts an additional seconds duration from the animation data that the end frame interval references.

## See Also

### Timing the animation

- [frameInterval](realitykit/sampledanimation/frameinterval.md)
- [start](realitykit/sampledanimation/start.md)
- [end](realitykit/sampledanimation/end.md)
- [speed](realitykit/sampledanimation/speed.md)
- [delay](realitykit/sampledanimation/delay.md)
- [duration](realitykit/sampledanimation/duration.md)
- [offset](realitykit/sampledanimation/offset.md)
- [trimDuration](realitykit/sampledanimation/trimduration.md)
- [trimStart](realitykit/sampledanimation/trimstart.md)
