Releases: chiahsien/CHTCollectionViewWaterfallLayout
Releases · chiahsien/CHTCollectionViewWaterfallLayout
More configurations and bug fix
More configurations and Swift version
- Adding a configuration option to determine the order of rendering the items. Options include Left-to-Right | Right-to-Left | Shortest column first (existing default).
- New demo screenshots
- Custom column count per section
- Swift version
- Code cleanup
More delegate methods and Travis-CI
- Stability improvement
- Integrate Travis-CI
- Add more delegate methods
Bug fix and API change
- [Add] Add
minimumColumnSpacingandminimumInteritemSpacingproperties. - [Remove] Remove
itemWidthproperty. The layout object will calculate a proper item width automatically. - [Change] Rename delegate method
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout heightForItemAtIndexPath:(NSIndexPath *)indexPathto- (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
sectionInsetcorrectly.
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
delegateproperty, your collectionView's delegate MUST conforms to<CHTCollectionViewDelegateWaterfallLayout>protocol.