Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

Notifications You must be signed in to change notification settings

inderdhir/StagLayout

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

AltStyle によって変換されたページ (->オリジナル) /