测试测试 | ✗ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布最新发布 | 2017年12月 |
SwiftSwift版本 | 4.0 |
SPM支持SPM | ✗ |
由 harryzjm 维护。
SMWaterFlowLayout 是 UICollectionViewFlowLayout 的子类,易于使用。
只需将文件添加到项目中的源目录。
var lineCount: UInt //to adjust line count
您必须遵循 UICollectionViewDelegateFlowLayout
来支持从 height
和 lineLength
的高度,您可以从 SMWaterFlowLayout.lineLength
轻松获取。只需查看示例。
func collectionView(UICollectionView, layout: UICollectionViewLayout, sizeForItemAt: IndexPath)
SMWaterFlowLayout 在 MIT 许可下发布。查看 LICENSE 获取详细信息。
Hares - https://github.com/harryzjm
博客: https://harryzjm.github.io/
电子邮件: [email protected]