/StagLayout

Custom UICollectionViewLayout for iOS that supports staggered layout for 2x2 (or 2x1) grids

Primary LanguageSwiftMIT LicenseMIT

StagLayout

Version License Platform

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_1 Example_2 Example_3

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. To install it, simply add the following line to your Podfile:

pod 'StagLayout'

Author

Inder Dhir, inderdhir@hotmail.com

License

StagLayout is available under the MIT license. See the LICENSE file for more info.