---
title: currentCodeUnitOffset
framework: swift
role: symbol
role_heading: Instance Property
path: swift/utf8span/characteriterator/currentcodeunitoffset
---

# currentCodeUnitOffset

The byte offset of the start of the next Character. This is always scalar-aligned. It is always Character-aligned relative to the last call to reset (or the start of the span if not called).

## Declaration

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