---
title: ScrollViewProxy
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/scrollviewproxy
---

# ScrollViewProxy

A proxy value that supports programmatic scrolling of the scrollable views within a view hierarchy.

## Declaration

```swift
struct ScrollViewProxy
```

## Overview

Overview You don’t create instances of ScrollViewProxy directly. Instead, your ScrollViewReader receives an instance of ScrollViewProxy in its content content builder. You use actions within this content builder, such as button and gesture handlers or the onChange(of:perform:) method, to call the proxy’s scrollTo(_:anchor:) method.

## Topics

### Performing scrolling

- [scrollTo(_:anchor:)](swiftui/scrollviewproxy/scrollto(_:anchor:).md)

## See Also

### Creating a scroll view

- [ScrollView](swiftui/scrollview.md)
- [ScrollViewReader](swiftui/scrollviewreader.md)
