[![CI Status](http://img.shields.io/travis/Luan Nguyen/LNHorizontalCollectionView.svg?style=flat)](https://travis-ci.org/Luan Nguyen/LNHorizontalCollectionView)
A custom collection view flow layout with horizontal scrolling and paging.
. Just adding code below into viewDidLoad func in your viewcontroller :
let flowLayout = HorizontalFlowLayout()
flowLayout?.maximumSpacing = 5
collectionView?.collectionViewLayout = flowLayout!
. Default value of the number cell in one row is 2.
. In order to change the number cell in one row, using let flowLayout = HorizontalFlowLayout(numberInOneRow: 3)
instead.
. Xcode 8
. Swift 3
LNHorizontalCollectionView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "LNHorizontalCollectionView"
Luan Nguyen, [email protected]
LNHorizontalCollectionView is available under the MIT license. See the LICENSE file for more info.