---
title: "scrollTo(edge:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/scrollposition/scrollto(edge:)"
---

# scrollTo(edge:)

Scrolls the position of the scroll view to the edge you provide.

## Declaration

```swift
mutating func scrollTo(edge: Edge)
```
