---
title: endIndex
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/data/endindex
---

# endIndex

The end index into the data.

## Declaration

```swift
var endIndex: Data.Index { get }
```

## Discussion

Discussion This is the “one-past-the-end” position, and will always be equal to the count.

## See Also

### Manipulating Indexes

- [Data.Index](foundation/data/index.md)
- [startIndex](foundation/data/startindex.md)
- [index(after:)](foundation/data/index(after:).md)
- [index(before:)](foundation/data/index(before:).md)
