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

# trimEnd

The 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/animationdefinition/speed.md)
- [delay](realitykit/animationdefinition/delay.md)
- [duration](realitykit/animationdefinition/duration.md)
- [offset](realitykit/animationdefinition/offset.md)
- [trimDuration](realitykit/animationdefinition/trimduration.md)
- [trimStart](realitykit/animationdefinition/trimstart.md)
- [trimmed(start:end:duration:)](realitykit/animationdefinition/trimmed(start:end:duration:).md)
