YCCustomFlowLayout
SCREENSHOT
安装
YCCustomFlowLayout 可通过 CocoaPods 获取。安装它,只需将以下行添加到您的 Podfile 中
pod 'YCCustomFlowLayout'
YCCustomLayoutDatasource
//MARK: YCCustomFlowLayoutDatasource
func numberOfColomns() -> Int {
return 3
}
func cellPadding() -> CGFloat {
return 4
}
func collectionView(_ collectionView: UICollectionView, heightForItemAtIndexPath indexPath:IndexPath) -> CGFloat {
return CGFloat(itemHeight[indexPath.row])
}
作者
- Yusuf Çınar - https://github.com/cinaryusufiu
许可证
本项目采用MIT许可证 - 查看详情请参考LICENSE.md文件