STWaterfallLayout 0.0.5

STWaterfallLayout 0.0.5

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布上次发布2016年12月
SwiftSwift 版本3.0
SPM支持 SPM

CoderST 维护。



  • CoderST

STWaterfallLayout

使用 swift3.0 编写的自定义瀑布流

  • 使用 FallLayout 的一种简单方式

如何使用 STWaterfallLayout

  • CocoaPods 安装:pod ‘STWaterfallLayout’

  • 手动导入:

    • 将 STWaterfallLayout 文件夹中的所有文件拖到项目中

  • 关于如何使用 FallLayout

    • 以下 STWaterfallLayoutDataSource 都遵循并实现了

/// 返回多少列
    func numberOfCols(stWaterfallLayout : STWaterfallLayout)->Int

    /// 每一个item的高度
    func heightOfItem(stWaterfallLayout : STWaterfallLayout, indexPath : NSIndexPath, itemWidth : CGFloat)->CGFloat

(image)