Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/coeur/collectionviewcenteredflowlayout

A layout for UICollectionView that aligns the cells to the center.
https://github.com/coeur/collectionviewcenteredflowlayout

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

UICollectionView Centered Flow Layout
=====================================

A `UICollectionViewLayout` implementation that aligns the cells to the center.

## Installation with CocoaPods

```ruby
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`](https://developer.apple.com/reference/uikit/uicollectionviewdelegateflowlayout).

## License

`CollectionViewCenteredFlowLayout` is released under the [MIT license](https://github.com/coeur/CollectionViewCenteredFlowLayout/blob/main/LICENSE).