---
title: currentIndex
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/scanner/currentindex
---

# currentIndex

## Declaration

```swift
var currentIndex: String.Index { get set }
```
