CollectionKit icon indicating copy to clipboard operation
CollectionKit copied to clipboard

Using CollectionView Cell with IBOutlets built using XIB , crashes with nil

Open elemanhillary-zz opened this issue 5 years ago • 1 comments

Below is the code am using

       let creatorProvider = BasicProvider(
              dataSource: dataSource,
              viewSource: ClosureViewSource(
                viewGenerator: { (data, index) -> CreatorsCollectionViewCell in
                    return CreatorsCollectionViewCell.init()
                },
                viewUpdater: { (cell: CreatorsCollectionViewCell, data, index) in
                    cell.initData(user: data)
              }),
              sizeSource: { index, data, collectionSize in
                // 2. return size for each StoryItemCell here
                return CGSize(width: 64, height: 64)
            })

elemanhillary-zz avatar Nov 13 '20 22:11 elemanhillary-zz

Yes I also tried but same, it would be great if it supports cells also

mohanbright avatar Jan 22 '21 09:01 mohanbright