Skip to content

mohankrishnameruva/AutoScrollCollectionView

Repository files navigation

AutoScrollCollectionView

Version License Platform

Example

Want to scroll your collectionView continuously after specific intervals?. You can use this class to get it done within seconds.

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

Usage

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

pod 'AutoScrollCollectionView'

And run pod install from your directory

In your storyboard subclass your collectionview from "AutoScrollCollectionView" Import the pod in your viewController "import AutoScrollCollectionView" You can start scrolling of collectionView with the method startAutoScrolling(withTimeInterval:) which takes timeInterval parameter.

collectionView.startAutoScrolling(withTimeInterval: TimeInterval(exactly: 2.0)!)

Author

mohanmeruva, [email protected]

License

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