Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to scroll MaterialTabScroll progammatically? #19

Open
J6ey opened this issue Oct 25, 2024 · 1 comment
Open

How to scroll MaterialTabScroll progammatically? #19

J6ey opened this issue Oct 25, 2024 · 1 comment

Comments

@J6ey
Copy link

J6ey commented Oct 25, 2024

Since it's a ScrollView wrapper I tried using ScrollViewReader's scrollTo but that didn't do much. Anything we can use?

@wtmoose
Copy link
Member

wtmoose commented Oct 25, 2024

scrollPosition() is supported. There's an initializer where you provide a binding for the wrapper's scrollPosition() modifier. Then you modify the binding when you want to manipulate the scroll position.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants