https://github.com/coeur/collectionviewcenteredflowlayout
A layout for UICollectionView that aligns the cells to the center.
https://github.com/coeur/collectionviewcenteredflowlayout
Last synced: 4 months ago
JSON representation
A layout for UICollectionView that aligns the cells to the center.
- Host: GitHub
- URL: https://github.com/coeur/collectionviewcenteredflowlayout
- Owner: Coeur
- License: mit
- Created: 2017-05-25T03:02:05.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2023-07-29T15:50:53.000Z (almost 2 years ago)
- Last Synced: 2025-03-15T04:05:24.633Z (4 months ago)
- Language: Swift
- Homepage:
- Size: 71.3 KB
- Stars: 111
- Watchers: 6
- Forks: 20
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).