Skip to content

JayGajjar/RGPaperLayout

 
 

Repository files navigation

RGPaperLayout

This is a layout that clones the interaction of going through sections when editing your sections in Facebook's paper app

g

Watch it in action here

To use this simply drop it in as a class in the storyboard or nib when you create your collection view. or you can instantiate it in code and give it your collection view(via initWithFrame:collectionViewLayout: or just set the layout propery of the collection View. and you can use your collection View as you always do.

One important this for this layout is that in the datasource protcol to specify the number of cards you must use numberOfSectionsInCollectionView: , and for collectionView:numberOfItemsInSection: you must always return 1.

also note that the itemsize is computed by the layout to be "appropriate" to the size of the collection view itself so setting it won't do anything.

About

This is a layout that clones the interaction of going through sections when editing your sections in Facebook's paper app

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 100.0%