Latest 1.0.3
Homepage https://github.com/minhntran/MTCardLayout
License MIT
Platforms ios 7.0, requires ARC

MTCardLayout (iOS 7+)

Mimicking the behaviour of the Passbooks apps in iOS using a custom UICollectionViewLayout.

Crappy gif ahoy!

Installation

Copy the MTCardLayout folder that has the .h and .m into you project. Specify MTCardLayout as layout for your UICollectionView.

If you use CocoaPods, add pod ‘MTCardLayout’ to your Podfile.

See the attached sample project for usage.

Intended use

This collection view is suitable for applications that want to mimick the behaviour of the included Apple Passbook and Reminder on iOS devices (iOS 6 onwards).

This collection view layout is rather inneficient compared to other layouts, it invalidates for each change of bounds to support it’s fancy animations. On the other hand, it only recalculates the currently visible cells, so it can support big numbers of cells, just don’t make each cell expensive to redraw/rescale.

And it does not use UIDynamics, just math.

Credits

This is a rewrite of the PassbookLayout by CanTheAlmighty (https://github.com/CanTheAlmighty/PassbookLayout). This is a clean rewrite of that class and most of the functionality.

MTCardLayout includes a modified version of DraggableCollectionView by Luke Scott (https://github.com/lukescott/DraggableCollectionView).

Latest podspec

{
    "name": "MTCardLayout",
    "version": "1.0.3",
    "summary": "UICollectionView layout to mimick Passbook app.",
    "description": "                   Apple has released awesome card layout for apps like Passbook or Reminder,n                   how ever they do not release the layout with the SDK.n                   n                   This is an attempt to recreate the layout/animation as much as possible.n",
    "homepage": "https://github.com/minhntran/MTCardLayout",
    "screenshots": "https://raw.githubusercontent.com/minhntran/MTCardLayout/master/images/demo.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": "Minh Tran",
    "social_media_url": "http://twitter.com/zealix",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/minhntran/MTCardLayout.git",
        "tag": "v1.0.3"
    },
    "source_files": [
        "MTCardLayout",
        "MTCardLayout/**/*.{h,m}"
    ],
    "public_header_files": "MTCardLayout/**/*.h",
    "requires_arc": true
}

Pin It on Pinterest

Share This