Contents

ScrollViewProxy

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

Declaration

struct ScrollViewProxy

Overview

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

Topics

Performing scrolling

See Also

Creating a scroll view