FirelCrafter / SwiftUIPagingScrollView

implementation of generic paging scrollView in SwiftUI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Swift 100.0%