---
title: "reset(roundingForwardsFrom:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/utf8span/unicodescalariterator/reset(roundingforwardsfrom:)"
---

# reset(roundingForwardsFrom:)

Reset to the nearest scalar-aligned code unit offset >= i.

## Declaration

```swift
mutating func reset(roundingForwardsFrom i: Int)
```

## Discussion

Discussion note: O(1)
