Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 916 Bytes

File metadata and controls

22 lines (13 loc) · 916 Bytes

UICollectionView Centered Flow Layout

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.