---
title: endIndex
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/entity/childcollection/endindex
---

# endIndex

The collection’s “past the end” position—that is, the position one greater than the last valid subscript argument. (See Collection.endIndex.)

## Declaration

```swift
@MainActor @preconcurrency var endIndex: Int { get }
```

## See Also

### Manipulating indices

- [startIndex](realitykit/entity/childcollection/startindex.md)
- [index(after:)](realitykit/entity/childcollection/index(after:).md)
