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

# skipForward(by:)

Advance currentCodeUnitOffset to the end of n scalars, without decoding them.

## Declaration

```swift
mutating func skipForward(by n: Int) -> Int
```

## Discussion

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