---
title: endIndex
framework: swift
role: symbol
role_heading: Instance Property
path: swift/dictionary/endindex
---

# endIndex

The dictionary’s “past the end” position—that is, the position one greater than the last valid subscript argument.

## Declaration

```swift
var endIndex: Dictionary<Key, Value>.Index { get }
```

## Discussion

Discussion If the collection is empty, endIndex is equal to startIndex. note: Amortized O(1) if the dictionary does not wrap a bridged NSDictionary; otherwise, the performance is unspecified.
