CHTCollectionViewWaterfallLayout Versions Save

The waterfall (i.e., Pinterest-like) layout for UICollectionView.

0.7

10 years ago
  • Stability improvement
  • Integrate Travis-CI
  • Add more delegate methods

0.5

10 years ago
  • [Add] Multiple sections.
  • [Add] Header and/or footer for section.
  • [Add] More properties and delegation methods.
  • [Change] Remove delegate property, your collectionView's delegate MUST conforms to <CHTCollectionViewDelegateWaterfallLayout> protocol.

0.6

10 years ago
  • [Add] Add minimumColumnSpacing and minimumInteritemSpacing properties.
  • [Remove] Remove itemWidth property. The layout object will calculate a proper item width automatically.
  • [Change] Rename delegate method - (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout heightForItemAtIndexPath:(NSIndexPath *)indexPath to - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath. It should return original size for each item.
  • [Fix] Section header and/or footer should work properly.
  • [Fix] Use sectionInset correctly.