A UICollectionViewLayout implementation that aligns the cells to the center.
Installation with CocoaPods
pod 'CollectionViewCenteredFlowLayout'
Usage
Simply set CollectionViewCenteredFlowLayout as the layout object for your collection view either via Interface Builder.
CollectionViewCenteredFlowLayout is a subclass of UICollectionViewFlowLayout, so your collection view delegate can use all the delegate methods of UICollectionViewDelegateFlowLayout.
License
CollectionViewCenteredFlowLayout is released under the MIT license.
UICollectionView Centered Flow Layout
A
UICollectionViewLayoutimplementation that aligns the cells to the center.Installation with CocoaPods
Usage
Simply set
CollectionViewCenteredFlowLayoutas the layout object for your collection view either via Interface Builder.CollectionViewCenteredFlowLayoutis a subclass ofUICollectionViewFlowLayout, so your collection view delegate can use all the delegate methods ofUICollectionViewDelegateFlowLayout.License
CollectionViewCenteredFlowLayoutis released under the MIT license.