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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fe9008e · Jul 29, 2023

History

18 Commits
Aug 4, 2022
Jul 29, 2023
Jan 28, 2019
Jul 29, 2023
Jul 29, 2023
May 27, 2017
Jan 20, 2020
Jun 10, 2022
May 27, 2017
May 25, 2017

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.