YCCustomLayout
截图
安装
YCCustomLayout 可通过 CocoaPods 获得。要安装它,只需将以下行添加到您的 Podfile 中
pod 'YCCustomLayout'
YCCustomLayoutDatasource
//MARK: YCCustomLayoutDatasource
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文件