Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
elemanhillary-zz opened this issue Nov 13, 2020 · 1 comment

Comments

@elemanhillary-zz
Copy link

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)
            })
@mohanbright
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants