Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 633 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 633 Bytes

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