---
title: endIndex
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/animationlibrarycomponent/animationcollection/endindex
---

# endIndex

An index to the last animation in the collection.

## Declaration

```swift
var endIndex: AnimationLibraryComponent.AnimationCollection.Index { get }
```

## See Also

### Manipulating indices

- [startIndex](realitykit/animationlibrarycomponent/animationcollection/startindex.md)
- [index(after:)](realitykit/animationlibrarycomponent/animationcollection/index(after:).md)
- [formIndex(after:)](realitykit/animationlibrarycomponent/animationcollection/formindex(after:).md)
- [AnimationLibraryComponent.AnimationCollection.Index](realitykit/animationlibrarycomponent/animationcollection/index.md)
