---
title: endIndex
framework: Swift
role: symbol
role_heading: Instance Property
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: swift/uniquearray/endindex
---

# endIndex

The array’s “past the end” position—that is, the position one greater than the last valid subscript argument. This is always equal to array’s count.

## Declaration

```swift
var endIndex: Int { get }
```

## Discussion

Discussion note: O(1)
