Git Product home page Git Product logo

thspringycollectionview's Introduction

THSpringyCollectionView

A memory and CPU efficient implementation of a collection view with cells that bounce around like they do in the iOS 7 messages app.

Screenshot

This is implemented by simply subclassing the UICollectionViewFlowLayout class and adding UIAttachmentBehaviours to the layout attributes. The implementation is based on the "Exploring Scroll Views on iOS 7" presentation from WWDC 2013, however it goes further by providing robust memory and CPU management by tiling the UIAttachmentBehaviours.

thspringycollectionview's People

Contributors

tristanhimmelman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

thspringycollectionview's Issues

Super laggy and inefficient if number of cells > 100

Starts lagging really badly after 100 cells. Did some debugging, found out that PrepareLayout gets called like every 0.01 second on scrolling... in other words, collectionview asks for all cells for their respective height every 0.01 second - performance gets really bad if you implement customized cell height.

Any chance this can get fixed?

Error while run the demo project

When I run the demo project, Execution completed but there is error saying:

2014-02-27 16:50:32.330 THSpringyCollectionView[1073:60b] Unknown class cellIdentifier in Interface Builder file.

demo_project_result

how to insert item?

when i insert a item , it will crash ,
this is my log
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'no UICollectionViewLayoutAttributes instance for -layoutAttributesForItemAtIndexPath: <NSIndexPath: 0xc89c390> {length = 2, path = 0 - 5}'

how to fix it? thanks a lot

The animation is broken in ios8

I've tried with many sample projects like this one and all of them are broken in ios 8. The cells move around in a very weird way. Please let me know if you find a way to fix it!

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.