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

# endIndex

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

## Declaration

```swift
var endIndex: String.UnicodeScalarView.Index { get }
```

## Discussion

Discussion In an empty Unicode scalars view, endIndex is equal to startIndex.
