hryk224 496eaaf907 Merge pull request #7 from AxialExchange/swift3
Changed delegate call from collectionView to infiniteCollectionView
2016-10-14 10:07:43 +09:00
2016-09-26 11:57:27 +09:00
2016-01-04 03:06:42 +09:00
2016-09-26 11:57:27 +09:00
2016-01-04 03:06:42 +09:00
2016-09-26 11:57:27 +09:00

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
collectionView.cellWidth = XXX
// protocol
func number(ofItems collectionView: UICollectionView) -> Int
func collectionView(_ collectionView: UICollectionView, dequeueForItemAt dequeueIndexPath: IndexPath, cellForItemAt usableIndexPath: IndexPath) -> UICollectionViewCell

// optional
func collectionView(_ 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.

S
Description
Infinite horizontal scrolling using UICollectionView.
Readme MIT 45 MiB
Languages
Swift 94.5%
Ruby 2.9%
Objective-C 2.6%