Releases: chiahsien/CHTCollectionViewWaterfallLayout
Releases · chiahsien/CHTCollectionViewWaterfallLayout
More delegate methods and Travis-CI
- Stability improvement
- Integrate Travis-CI
- Add more delegate methods
Bug fix and API change
- [Add] Add
minimumColumnSpacing
andminimumInteritemSpacing
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
- [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.