InfiniteCollectionView Save

Infinite horizontal scrolling using UICollectionView.

Project README

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.

Open Source Agenda is not affiliated with "InfiniteCollectionView" Project. README Source: hryk224/InfiniteCollectionView
Stars
227
Open Issues
12
Last Commit
2 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating