---
title: "index(after:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/data/index(after:)"
---

# index(after:)

Returns the index that immediately follows the specified index.

## Declaration

```swift
func index(after i: Data.Index) -> Data.Index
```

## See Also

### Manipulating Indexes

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