Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 22 days 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 (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-02T21:45:50.000Z (almost 10 years ago)
- Last Synced: 2023-10-20T23:22:16.670Z (about 1 year ago)
- Language: Objective-C
- Homepage:
- Size: 1.12 MB
- Stars: 319
- 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![g](https://github.com/terminatorover/RGPaperLayout/blob/master/sim.png)
[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.