Arnaud Dorgans 5746d5a7c4 Update README.md
2017-12-25 18:30:35 +01:00
2017-12-23 20:40:46 +01:00
2017-12-23 20:40:46 +01:00
2017-12-20 23:40:44 +01:00
2017-12-23 20:40:46 +01:00
2017-12-23 20:40:46 +01:00
2017-12-20 23:40:44 +01:00
pod
2017-12-23 22:22:50 +01:00
2017-12-20 23:40:44 +01:00
2017-12-25 18:30:35 +01:00

InfiniteLayout

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

InfiniteLayout is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'InfiniteLayout'

Usage

@IBOutlet weak var collectionView: InfiniteCollectionView!

InfiniteCollectionView doesn't need any other delegate or dataSource, just use UICollectionViewDataSource and UICollectionViewDelegate in the same way as you'll use it in any other UICollectionView.

InfiniteLayout provides 3 classes for infinite scrolling:

InfiniteLayout: an UICollectionViewFlowLayout

InfiniteCollectionView: an UICollectionView with InfiniteLayout

InfiniteCollectionViewController: an UICollectionViewController with InfiniteCollectionView

IndexPath

InfiniteCollectionView may create fake indexPath,

To get the real indexPath call

func indexPath(from infiniteIndexPath: IndexPath) -> IndexPath

To get the real section call

func section(from infiniteSection: Int) -> Int

Paging

InfiniteCollectionView provide a paging functionality, you can enable it by setting the isItemPagingEnabled flag to true,

When the isItemPagingEnabled flag is enabled you can adjust the deceleration rate by setting the velocityMultiplier, the more the value is high, the more the deceleration is long

Author

Arnoymous, ineox@me.com

License

InfiniteLayout is available under the MIT license. See the LICENSE file for more info.

S
Description
Horizontal and Vertical infinite scrolling feature for UICollectionView with Paging, NSProxy delegate, Reactive extension, SectionModel & AnimatableSectionModel support
Readme MIT 16 MiB
Languages
Swift 90.3%
Ruby 5.2%
Objective-C 4.5%