---
title: startIndex
framework: swift
role: symbol
role_heading: Instance Property
path: swift/uint8/words-swift.struct/startindex
---

# startIndex

The position of the first element in a nonempty collection.

## Declaration

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

## Discussion

Discussion If the collection is empty, startIndex is equal to endIndex.
