Skip to content

Releases: chiahsien/CHTCollectionViewWaterfallLayout

More delegate methods and Travis-CI

06 May 12:47
Compare
Choose a tag to compare
  • Stability improvement
  • Integrate Travis-CI
  • Add more delegate methods

Bug fix and API change

02 Apr 02:24
Compare
Choose a tag to compare
  • [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.

Support multiple sections and header/footer for section

02 Apr 02:25
Compare
Choose a tag to compare
  • [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.