Latest 1.1
Homepage https://github.com/tmukammel/InfiniteScrollCollectionView
License MIT
Platforms ios 8.0
Authors

[![CI Status](http://img.shields.io/travis/Twaha Mukammel/InfiniteScrollCollectionView.svg?style=flat)](https://travis-ci.org/Twaha Mukammel/InfiniteScrollCollectionView)
Version
License
Platform

Example

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

About

Create a infinitely scrolling horizontal collection view.

Limitations

  1. Total number of items in the collection view should sum to a width greater than or equal to width of collection view.
  2. There will be repeating (one less than number of elements occupy the collection view bounds.width -> N) elements on both ends of data source array. To the begning N elements will be added from the end and at the end N elements will be added from the begning. So in identifying the elements please use some mechanism.

How To

  1. Add InfiniteScrollCollectionView in Storyboard or initWithFrame.
  2. Set ‘infiniteScrollDelegate’.
  3. Call ‘prepareDataSourceForInfiniteScroll’ with data array.
  4. Call ‘setInitialOffset’ on viewDidAppear.
  5. Implement ‘uniformItemSizeInCollectionView’ of InfiniteScrollCollectionViewDelegatge.
  6. Call ‘infiniteScrollViewDidScroll’ from ‘scrollViewDidScroll’ of this collectionView’s delegate.

Thats it. Enjoy!

Installation

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

pod "InfiniteScrollCollectionView"

Author

Twaha Mukammel, [email protected]

License

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

Latest podspec

{
    "name": "InfiniteScrollCollectionView",
    "version": "1.1",
    "summary": "A Infinite horizontal scrolling collectionView.",
    "description": "Create a infinitely scrolling horizontal collection view.nLimitations:n1. Total number of items in the collection view should sum to a width greater than or equal to width of collection view.n2. There will be repeating (one less than number of elements occupy the collection view bounds.width ) elements on both ends of data source array. To the begning N elements will be added from the end and at the end N elements will be added from the begning. So in identifying the elements please use some mechanism.nHow To:n1. Add InfiniteScrollCollectionView in Storyboard or initWithFrame.n2. Set 'infiniteScrollDelegate'.n3. Call 'prepareDataSourceForInfiniteScroll' with data array.n4. Call 'setInitialOffset' on viewDidAppear.n5. Implement 'uniformItemSizeInCollectionView' of InfiniteScrollCollectionViewDelegatge.n6. Call 'infiniteScrollViewDidScroll' from 'scrollViewDidScroll' of this collectionView's delegate.nnThats it. Enjoy!",
    "homepage": "https://github.com/tmukammel/InfiniteScrollCollectionView",
    "screenshots": "https://dl.dropboxusercontent.com/s/j61j4mfohp8k6ry/IMG_0965.PNG",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Twaha Mukammel": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tmukammel/InfiniteScrollCollectionView.git",
        "tag": "1.1"
    },
    "social_media_url": "https://twitter.com/tmukammel",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "InfiniteScrollCollectionView/Classes/**/*",
    "pushed_with_swift_version": "3.0.2"
}

Pin It on Pinterest

Share This