---
title: Unicode.Scalar.UTF8View.Index
framework: swift
role: symbol
role_heading: Type Alias
path: swift/unicode/scalar/utf8view/index
---

# Unicode.Scalar.UTF8View.Index

A type that represents a position in the collection.

## Declaration

```swift
typealias Index = Int
```

## Discussion

Discussion Valid indices consist of the position of every element and a “past the end” position that’s not valid for use as a subscript argument.
