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.
link |
Stars: 108 |
Last commit: 37 weeks ago |
Thanks to @mohpor, we now have Swift Package Manager support.
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics