Compatibility
- 1.0.2 and master5.35.25.15.04.2
- 1.0.2 and masteriOSmacOS(Intel)macOS(ARM)LinuxtvOSwatchOS
A layout for UICollectionView that aligns the cells to the center.
A UICollectionViewLayout
implementation that aligns the cells to the center.
pod 'CollectionViewCenteredFlowLayout'
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
.
CollectionViewCenteredFlowLayout
is released under the MIT license.