Latest1.0
Homepagehttps://github.com/terminatorover/RGCardViewLayout
LicenseMIT
Platformsios 6.0, requires ARC
FrameworksUIKit, Foundation, CoreGraphics

demo

Watch it in action here
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 raywenderlich

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.

Place the following line into your podfile to use RGCardViewLayout: pod ‘RGCardViewLayout’,’1.0′

Latest podspec

{
    "name": "RGCardViewLayout",
    "version": "1.0",
    "summary": "Collection view card layout.",
    "description": "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).",
    "authors": "Robera Geleta",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "homepage": "https://github.com/terminatorover/RGCardViewLayout",
    "platforms": {
        "ios": "6.0"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/terminatorover/RGCardViewLayout.git",
        "tag": "v1.0"
    },
    "frameworks": [
        "UIKit",
        "Foundation",
        "CoreGraphics"
    ],
    "source_files": "RGCardViewLayout.{h,m}",
    "public_header_files": "RGCardViewLayout.h"
}

Pin It on Pinterest

Share This