Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/terminatorover/rgcardviewlayout
This is a layout that clones the interaction of going through city "cards" in the City Guide App. (this app is #3 for the top iOS app animations on the raywenderlich
https://github.com/terminatorover/rgcardviewlayout
Last synced: about 8 hours ago
JSON representation
This is a layout that clones the interaction of going through city "cards" in the City Guide App. (this app is #3 for the top iOS app animations on the raywenderlich
- Host: GitHub
- URL: https://github.com/terminatorover/rgcardviewlayout
- Owner: terminatorover
- License: mit
- Created: 2015-01-24T04:11:05.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-20T19:08:28.000Z (almost 9 years ago)
- Last Synced: 2024-12-17T19:06:06.985Z (7 days ago)
- Language: Objective-C
- Homepage:
- Size: 1.67 MB
- Stars: 1,345
- Watchers: 52
- Forks: 158
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RGCardViewLayout
![demo](demo.gif)
[Watch it in action here](https://www.youtube.com/watch?v=g_NGIphyckQ&feature=youtu.be)
This is a layout that clones the interaction of going through cities in the City Guide App. (this app is #3 for the top iOS app animations on the raywenderlichTo 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.Place the following line into your podfile to use RGCardViewLayout: pod 'RGCardViewLayout','1.0'