Skip to content

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

@elemanhillary-zz

Description

@elemanhillary-zz

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)
            })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions