Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/coeur/collectionviewcenteredflowlayout
- Owner: Coeur
- License: mit
- Created: 2017-05-25T03:02:05.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-07-29T15:50:53.000Z (over 1 year ago)
- Last Synced: 2024-10-14T12:59:12.660Z (3 months ago)
- Language: Swift
- Homepage:
- Size: 71.3 KB
- Stars: 111
- Watchers: 7
- Forks: 20
- Open Issues: 4
-
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).