Giter Site home page Giter Site logo

perpetio / mtcardlayout Goto Github PK

View Code? Open in Web Editor NEW

This project forked from minhntran/mtcardlayout

0.0 2.0 0.0 1.11 MB

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

License: Other

Ruby 1.81% Objective-C 98.19%

mtcardlayout's Introduction

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).

mtcardlayout's People

Contributors

minhntran avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.