restoreScroll()
Enables scroll position restoration across navigation.
restoreScroll(key?: BindingOrValue<string | undefined>): this;
Notes
- When set, the scroll position is saved by the platform handler on scroll and restored when the view is recreated, if possible.
Parameters
- key — A unique key to identify this scroll view’s position in storage, defaults to “page”
Return value
The builder instance for chaining
Related
class ScrollViewBuilder static
A builder forUIScrollViewinstances.
