tristanhimmelman / 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
MIT License
726 stars 92 forks source link

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.