Infinite horizontal scrolling using UICollectionView.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 30c3562 Feb 27, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example Small changed Feb 27, 2017
InfiniteCollectionView.xcodeproj 1.3.1 Feb 16, 2017
Sources Small changed Feb 27, 2017
.gitignore Removed unneeded property Nov 17, 2016
.swift-version Add swift vetsion file Oct 19, 2016
InfiniteCollectionView.podspec 1.3.1 Feb 16, 2017
LICENSE Initial commit Jan 3, 2016
Package.swift 1.3.1 Feb 16, 2017
README.md Removed unneeded property Nov 17, 2016

README.md

InfiniteCollectionView

Infinite horizontal scrolling using UICollectionView

CocoaPods Compatible Swift 3.0

Requirements

  • iOS 8.0+
  • Swift 3.0+
  • ARC

install

CocoaPods

Adding the following to your Podfile and running pod install:

use_frameworks!
pod "InfiniteCollectionView"

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.