---
title: endIndex
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/fetchedresults/endindex
---

# endIndex

The index that’s one greater than the last valid subscript argument.

## Declaration

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

## See Also

### Getting indices

- [startIndex](swiftui/fetchedresults/startindex.md)
