CollectionKit
CollectionKit copied to clipboard
Reimagining UICollectionView
Fix: when CollectionView goto Reuse pool,need to set its provider = nil,otherwise there may be two collectionView have the same provider,and maybe will crash later. Fix:当CollectionView进入复用池,需要重置provider,避免出现 多个collectionView 持有同个provider对象,导致数据更新不同步,进而未同步的collectionView中flattenProvider的childSections范围错误导致越界崩溃
I need multiple nested lists with background views like in sections in Settings app
Hi, I have a problem with the sourceSize implementation. What would be the best way to implement the display images from the url, knowing that each has a different size....
Hi! There is a lack of a provider that could contain a data with different types of views, and not just one type. For example, you can combine view and...
```swift // course view source let courseViewSource = ClosureViewSource { (view: StudyCar2CouseView, data: StudyCarCourseListModel, index: Int) in view.model = data view.tapBtn = { model in self.tapApplyCourse
'CollectionView' has different definitions in different modules; first difference is definition in module 'CollectionKit.Swift' found super class with type 'UIScrollView'
Below is the code am using ```Swift let creatorProvider = BasicProvider( dataSource: dataSource, viewSource: ClosureViewSource( viewGenerator: { (data, index) -> CreatorsCollectionViewCell in return CreatorsCollectionViewCell.init() }, viewUpdater: { (cell: CreatorsCollectionViewCell, data,...
How can I update the data in the collection? when I update the data in the array, then scroll back and forth, the data in the collection becomes old again,...
Hello! I've noticed that cells in the same type of providers which are combined in ComposedProvider are not reusing. So, for example, there is Provider with RowLayout and there are...
iI want to create a simple flow layout that supports RTL, I tried this code but items order always change ``` let viewSource = ClosureViewSource(viewUpdater: { (view: UILabel, data: String,...