Swift Package Index

CollectionViewCenteredFlowLayout

https://github.com/Coeur/CollectionViewCenteredFlowLayout.git

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


Compatibility

  • 1.0.2 and master
    5.3
    5.2
    5.1
    5.0
    4.2
  • 1.0.2 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS

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.