Skip to content

FirelCrafter/SwiftUIPagingScrollView

 
 

Repository files navigation

SwiftUIPagingScrollView

implementation of generic paging scrollView in SwiftUI since there is not such option with SwiftUI ScrollView implementation

Example

This is still WIP but so far demonstrates the idea of using Hstack as a container and modifing the items offset based on the drag gesture

  • tested with XCode 11 beta 7

Recent changes:

  • Buttons can be now embedded into scrollview
  • Prepared binding to get active page index
  • taking dragging velicoty into account - fast scrolling is more fluid

Todo:

  • cleaner interface

About

implementation of generic paging scrollView in SwiftUI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%