View Code? Open in Web Editor
NEW
JJCollectionViewRoundFlowLayout_Swift是JJCollectionViewRoundFlowLayout(OC:https://github.com/kingjiajie/JJCollectionViewRoundFlowLayout )的Swift版本,JJCollectionViewRoundFlowLayout可设置CollectionView的BackgroundColor,可根据用户Cell个数计算背景图尺寸,可自定义是否包括计算CollectionViewHeaderView、CollectionViewFootererView或只计算Cells。设置简单,可自定义背景颜色偏移,设置显示方向(竖向、横向)显示,不同Section设置不同的背景颜色,设置Cell的对齐方式,支持左对齐,右对齐,居中。
License: MIT License
jjcollectionviewroundflowlayout_swift's People
jjcollectionviewroundflowlayout_swift's Issues
layout.sectionInset = UIEdgeInsets.init(top: 20, left: 20, bottom: 20, right: 20);
left: 20 和 right: 20 相互抵消,不再起作用
OC的好像没问题,swift会出现这种现象
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'no UICollectionViewLayoutAttributes instance for -layoutAttributesForDecorationViewOfKindOfKind: com.JJCollectionViewRoundSectionSwift at path <NSIndexPath: 0xaaee6f0d73fffca8> {length = 2, path = 0 - 0}'
我这个方法并没有调用会是什么原因呢
从后台进前台,整块背景颜色有问题。普通模式下显示暗黑模式颜色,暗黑模式下显示正常模式颜色
如果作者能实现流失布局的背景色、添加背景图片、背景渐变色就更完美了
在UICollectionView当中,如果最后一行没有完全显示在屏幕中,切换背景分组颜色的时候,最后一行不起作用
我项目中用到了rxswift ,导致CollectionViewRoundFlowLayout
176行 获取的代理为rx的代理,请问这个如何兼容呢