func scrollTo <ID>(ID, anchor: UnitPoint ?)
Scans all scroll views contained by the proxy for the first with a child view with identifier
id
, and then scrolls to that view.Availability 有効性
Technology
struct ScrollViewProxy
You don’t create instances of Scroll
directly. Instead, your Scroll
receives an instance of Scroll
in its content
view builder. You use actions within this view builder, such as button and gesture handlers or the on
method, to call the proxy’s scroll
method.
func scrollTo <ID>(ID, anchor: UnitPoint ?)
id
, and then scrolls to that view.struct ScrollView
struct ScrollViewReader