fermoya / SwiftUIPager

Native Pager in SwiftUI
MIT License
1.29k stars 172 forks source link

[FEAT] Possible way to scroll to specific page on button click. #189

Closed zzanehip closed 3 years ago

zzanehip commented 3 years ago

Been playing around and I'm not really sure if this is technically possible yet, or is a feature request. Essentially, I'd like to be able to click a button and set the current page index — scrolling the Pager to that specific page. Wondering if this is in any way possible. Thanks for all the great work.

zzanehip commented 3 years ago

Removing because I realize the .update() function doesn't correct the issue when selecting with more than 1 finger causes freezing (likely bug).