Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

PATchworkLayout

A patchwork style grid layout for UICollectionView. It lays out cells in patch sizes that are random multiples of the base patch size.

Screenshot

Usage

To use PATchworkLayout, simply set the collectionViewLayout property of your collection view to an instance of PATchworkLayout.

PATchworkLayout *layout = [PATchworkLayout alloc] init];
layout.maxSpan = 2;
layout.numberOfColumns = 4;
layout.baseItemSize = CGSizeMake(75.0f, 75.0f);
layout.horizontalSpacing = 4.0f;
layout.verticalSpacing = 4.0f;
collectionView.collectionViewLayout = layout;

Run the PhotoFun project in the examples folder to see a demo of PATchworkLayout.

Documentation is provided XCode style in the header file.

Installation

Manually add PATchworkLayout.m and .h files to your XCode project.

License

PATchworkLayout is MIT Licensed.

About

A patchwork style grid layout for UICollectionView

Resources

License

Releases

No releases published

Packages

No packages published