---
title: startIndex
framework: swift
role: symbol
role_heading: Instance Property
path: swift/unicode/scalar/utf8view/startindex
---

# startIndex

The position of the first code unit.

## Declaration

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