Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tmukammel/infinitescrollcollectionview
A Infinite horizontal scrolling collectionView.
https://github.com/tmukammel/infinitescrollcollectionview
auto-scroll collectionview infinite-lists infinite-scroll ios scrollview
Last synced: 6 days ago
JSON representation
A Infinite horizontal scrolling collectionView.
- Host: GitHub
- URL: https://github.com/tmukammel/infinitescrollcollectionview
- Owner: tmukammel
- License: mit
- Created: 2017-01-24T15:56:14.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-31T16:48:51.000Z (almost 8 years ago)
- Last Synced: 2024-12-18T05:04:18.360Z (17 days ago)
- Topics: auto-scroll, collectionview, infinite-lists, infinite-scroll, ios, scrollview
- Language: Swift
- Size: 34.2 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# InfiniteScrollCollectionView
[![CI Status](http://img.shields.io/travis/Twaha Mukammel/InfiniteScrollCollectionView.svg?style=flat)](https://travis-ci.org/Twaha Mukammel/InfiniteScrollCollectionView)
[![Version](https://img.shields.io/cocoapods/v/InfiniteScrollCollectionView.svg?style=flat)](http://cocoapods.org/pods/InfiniteScrollCollectionView)
[![License](https://img.shields.io/cocoapods/l/InfiniteScrollCollectionView.svg?style=flat)](http://cocoapods.org/pods/InfiniteScrollCollectionView)
[![Platform](https://img.shields.io/cocoapods/p/InfiniteScrollCollectionView.svg?style=flat)](http://cocoapods.org/pods/InfiniteScrollCollectionView)## 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](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "InfiniteScrollCollectionView"
```## Author
Twaha Mukammel, [email protected]
## License
InfiniteScrollCollectionView is available under the MIT license. See the LICENSE file for more info.