fermoya / SwiftUIPager

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

[FEAT] "tap to top" when tapping top right of status bar for `vertical` pagers #215

Closed garrettmaring closed 3 years ago

garrettmaring commented 3 years ago

Is your feature request related to a problem? Please describe.

For vertical pagers, I'd love a modifier that lets me enable "tap to top" as is seen in other vertically scrolling/feed-based apps.

Describe the solution you'd like An opt-in modifier to enable tapping on the top-right of the status bar to animate the vertical pager back to index 0.

Describe alternatives you've considered Just manage it with the index state myself.

fermoya commented 3 years ago

Hi @garrettmaring , please see this answer and let me know if it makes sense

garrettmaring commented 3 years ago

Ah, I wish Swift had this! I did some digging and couldn't find anything (as your answer states as well).