https://github.com/inderdhir/staglayout
Custom UICollectionViewLayout for iOS that supports staggered layout for 2x2 (or 2x1) grids
https://github.com/inderdhir/staglayout
cocoapod cocoapods collectionviewflowlayout collectionviewlayout ios ios-lib staggered staggered-grid-layout swift
Last synced: 6 months ago
JSON representation
Custom UICollectionViewLayout for iOS that supports staggered layout for 2x2 (or 2x1) grids
- Host: GitHub
- URL: https://github.com/inderdhir/staglayout
- Owner: inderdhir
- License: mit
- Created: 2018-12-24T18:50:46.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-19T18:19:43.000Z (almost 5 years ago)
- Last Synced: 2025-03-24T16:41:48.389Z (7 months ago)
- Topics: cocoapod, cocoapods, collectionviewflowlayout, collectionviewlayout, ios, ios-lib, staggered, staggered-grid-layout, swift
- Language: Swift
- Homepage:
- Size: 124 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# StagLayout
[](https://cocoapods.org/pods/StagLayout)
[](https://cocoapods.org/pods/StagLayout)
[](https://cocoapods.org/pods/StagLayout)Customizable UICollectionViewLayout that uses ratios (based on the collection view's width) to determine sizing of the cells. Only 2 max items per row are supported currently.


## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Installation
### Swift Package Manager
StagLayout is now available as a Swift package.
### Cocoapods
StagLayout is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'StagLayout'
```## Author
Inder Dhir, inderdhir@hotmail.com
## License
StagLayout is available under the MIT license. See the LICENSE file for more info.