All Projects → izakpavel → SwiftUIPagingScrollView

izakpavel / SwiftUIPagingScrollView

Licence: MIT license
implementation of generic paging scrollView in SwiftUI

Programming Languages

swift
15916 projects

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].