InfinityScrollView
is a Swift library that allows you to add endless horizontal scroll to different items. InfinityScrollView
has various configuration options:
- fast deceleration rate
- snap to center item
- configurable snap deceleration animations
Infinity scroll example:
Infinity scroll example with different items sizes:
Infinity scroll example with snap to center item:
Single item behaviour:
- iOS 11.0+
- Xcode 11.0+
- Swift 5.0+
To integrate Infinity Scroll View into your Xcode project with CocoaPods, specify it in your Podfile
:
pod 'Shakuro.InfinityScrollView'
Then, run the following command:
$ pod install
If you prefer not to use CocoaPods, you can integrate Shakuro.InfinityScrollView simply by copying it to your project.
Just create InfinityScrollView
programmatically or in the storyboard. Take into account that InfinityScrollView
must have the data source and the delegate objects. The data source needs to adopt the InfinityScrollViewDataSource
protocol and the delegate has to adopt the InfinityScrollViewDelegate
protocol. The data source provides the views that InfinityScrollView
will display. The delegate allows you to respond to scrolling events.
Take a look at the InfinityScrollView_Example (you need to perform pod install
before before using it).
Shakuro.InfinityScrollView is released under the MIT license. See LICENSE for details.
Star this tool if you like it, it will help us grow and add new useful things. Feel free to reach out and hire our team to develop a web project for you.