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

# index(after:)

Returns the position immediately after the given index. (See Collection.index.)

## Declaration

```swift
@MainActor @preconcurrency func index(after i: Int) -> Int
```

## See Also

### Manipulating indices

- [startIndex](realitykit/entity/childcollection/startindex.md)
- [endIndex](realitykit/entity/childcollection/endindex.md)
