MHPinterestLayout

Dynamic Pinterest CollectionView Layout


License
MIT
Install
pod try MHPinterestLayout

Documentation

MHPinterestLayout

CI Status Version License Platform

Possible output

/*  
 |___________|
 |__1__|  2  |
 |__3__|_____|
 |  4  |__5__|
 |_____|__6__|
 |     |__8__|
 |  7  |__9__|
 |_____|__10_|
 |  11 |     |
 |_____|  12 |
 |  13 |_____|
 |_____|__14_|
 |           |
 
 if 2 columned view
 (0,0)
 (1,0)
 (0,1)
 (0,2)
 (1,2)
 (1,3)
 (0,4)
 (1,4)
 (1,5)
 (1,6)
 (0,7)
 (1,7)
 (0,9)
 (1,10)
 */


Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

MHPinterestLayout is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "MHPinterestLayout"

Author

Michael Henry Pantaleon, me@iamkel.net

License

MHPinterestLayout is available under the MIT license. See the LICENSE file for more info.