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 installIf 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.
Explore our expertise in Native Mobile Development and iOS Development.
If you need professional assistance with your mobile or web project, feel free to contact our team




