Skip to content

Latest commit

 

History

History
79 lines (45 loc) · 2.4 KB

README.md

File metadata and controls

79 lines (45 loc) · 2.4 KB

Shakuro Infinity Scroll View

InfinityScrollView

Version Platform License MIT

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:

Requirements

  • iOS 11.0+
  • Xcode 11.0+
  • Swift 5.0+

Installation

CocoaPods

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

Manually

If you prefer not to use CocoaPods, you can integrate Shakuro.InfinityScrollView simply by copying it to your project.

Usage

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).

License

Shakuro.InfinityScrollView is released under the MIT license. See LICENSE for details.

Give it a try and reach us

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.