CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

InfiniteCollectionView 1.3.1

InfiniteCollectionView 1.3.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Feb 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by hryk224.




  • By
  • hyyk224

InfiniteCollectionView

Infinite horizontal scrolling using UICollectionView

Requirements

  • iOS 8.0+
  • Swift 3.0+
  • ARC

install

import

import InfiniteCollectionView

Usage

initialize

@IBOutlet weak var collectionView: InfiniteCollectionView!

delegate, dataSource

collectionView.infiniteDataSource = XXX
collectionView.infiniteDelegate = XXX
// protocol
func number(ofItems collectionView: UICollectionView) -> Int
func collectionView(_ collectionView: UICollectionView, dequeueForItemAt dequeueIndexPath: IndexPath, cellForItemAt usableIndexPath: IndexPath) -> UICollectionViewCell

// optional
func infiniteCollectionView(_ collectionView: UICollectionView, didSelectItemAt usableIndexPath: IndexPath)
func scrollView(_ scrollView: UIScrollView, pageIndex: Int)

Photos from

License

This project is made available under the MIT license. See LICENSE file for details.