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.
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)!)
mohanmeruva, [email protected]
AutoScrollCollectionView is available under the MIT license. See the LICENSE file for more info.