测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布上次发布 | 2016年12月 |
SwiftSwift 版本 | 3.0 |
SPM支持 SPM | ✗ |
由 CoderST 维护。
使用 swift3.0 编写的自定义瀑布流
CocoaPods 安装:pod ‘STWaterfallLayout’
手动导入:
关于如何使用 FallLayout
/// 返回多少列
func numberOfCols(stWaterfallLayout : STWaterfallLayout)->Int
/// 每一个item的高度
func heightOfItem(stWaterfallLayout : STWaterfallLayout, indexPath : NSIndexPath, itemWidth : CGFloat)->CGFloat