https://github.com/terminatorover/rgpaperlayout
This is a layout that clones the interaction of going through sections when editing your sections in Facebook's paper app
https://github.com/terminatorover/rgpaperlayout
Last synced: 3 months ago
JSON representation
This is a layout that clones the interaction of going through sections when editing your sections in Facebook's paper app
- Host: GitHub
- URL: https://github.com/terminatorover/rgpaperlayout
- Owner: terminatorover
- Created: 2015-02-26T03:56:42.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-02T21:45:50.000Z (over 10 years ago)
- Last Synced: 2025-04-10T03:55:36.287Z (3 months ago)
- Language: Objective-C
- Homepage:
- Size: 1.12 MB
- Stars: 321
- Watchers: 16
- Forks: 34
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RGPaperLayout
This is a layout that clones the interaction of going through sections when editing your sections in Facebook's paper app
[Watch it in action here](https://www.youtube.com/watch?v=X10hdbakG2E&feature=youtu.be)
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.