Skip to content

A layout for UICollectionView that aligns the cells to the center.

License

Notifications You must be signed in to change notification settings

Coeur/CollectionViewCenteredFlowLayout

Repository files navigation

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.

About

A layout for UICollectionView that aligns the cells to the center.

Resources

License

Stars

Watchers

Forks

Packages

No packages published