Monday 15 April 2019

Custom Waterfall Layout Widget

Check demo in Github
https://github.com/Sylvia-YiyinShen/WaterfallWidgetDemo

Easy to use
1. Make your own model conform to WaterfallWidgetCellModelProtocol
2. Make your own collection cell conform to WaterfallWidgetCellProtocol
3. Invoke func configure(models: [WaterfallWidgetCellModelProtocol], customCellNib: UINib, backgroundColor: UIColor = default)


Highly customisable

  • columnCount
  • minimumColumnSpacing
  • minimumInteritemSpacing
  • sectionInset
  • itemRenderDirection
  • backgroundColor


No comments:

Post a Comment