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

# formIndex(after:)

Replaces the index with its successor.

## Declaration

```swift
func formIndex(after i: inout AnimationLibraryComponent.AnimationCollection.Index)
```

## See Also

### Manipulating indices

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