---
title: skipForward()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/utf8span/unicodescalariterator/skipforward()
---

# skipForward()

Advance currentCodeUnitOffset to the end of the current scalar, without decoding it.

## Declaration

```swift
mutating func skipForward() -> Int
```

## Discussion

Discussion Returns the number of Unicode.Scalars skipped over, which can be 0 if at the end of the UTF8Span. note: O(1)
