Skip to content

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

Notifications You must be signed in to change notification settings

terminatorover/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. You can also instantiate it in code and give it your collection view(via initWithFrame:collectionViewLayout: or just set the layout property of the collection view. From there, you can use your collection view as you always do.

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

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