---
title: next()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/utf8span/characteriterator/next()
---

# next()

Return the Character starting at currentCodeUnitOffset. After the function returns, currentCodeUnitOffset holds the position at the end of the Character, which is also the start of the next Character.

## Declaration

```swift
mutating func next() -> Character?
```

## Discussion

Discussion Returns nil if at the end of the UTF8Span.
