---
title: "index(after:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/animationlibrarycomponent/animationcollection/index(after:)"
---

# index(after:)

Returns the position in the collection that follows an index.

## Declaration

```swift
func index(after i: AnimationLibraryComponent.AnimationCollection.Index) -> AnimationLibraryComponent.AnimationCollection.Index
```

## Parameters

- `i`: A valid index of the collection. i must be less than endIndex.

## See Also

### Manipulating indices

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