fermoya / SwiftUIPager

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

[FEAT] .dragBackwardsOnly() ? #327

Open trapper- opened 1 year ago

trapper- commented 1 year ago

Is it possible to navigate programmatically forwards, and allow drag backwards only?

johnnewman commented 9 months ago

This is a great idea.

This would help when using SwiftUIPager to manage paginated input. If the selected page is incomplete/erroneous, it would be beneficial to disable forward swiping so that the user can't continue, while still allowing backward swiping so that the user can access previous pages.