fermoya / SwiftUIPager

Native Pager in SwiftUI
MIT License
1.27k stars 166 forks source link

[FEAT] .dragBackwardsOnly() ? #327

Open trapper- opened 11 months ago

trapper- commented 11 months ago

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

johnnewman commented 5 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.