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

Adds support for UICollectionViewCells without a nib/xib #7

Merged

Conversation

swoolcock
Copy link
Contributor

Closes issue #6

Also fixes a crashing test due to unwrapping nil optionals.

@gwennguihal
Copy link
Member

Thank you for the pull request!

Copy link
Member

@gwennguihal gwennguihal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@swoolcock , did you see my feedback ?

Collor/Classes/CollectionDataSource.swift Show resolved Hide resolved
Copy link
Member

@gwennguihal gwennguihal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@swoolcock Are you ok with my comments ? I would like to merge as soon as possible :)

Collor/Classes/DecorationViewsHandler.swift Show resolved Hide resolved
Collor/Classes/CollectionDataSource.swift Show resolved Hide resolved
let nib = UINib(nibName: cellDescriptor.className, bundle: cellDescriptor.bundle)
collectionView.register(nib, forCellWithReuseIdentifier: cellDescriptor.identifier)
}
else if let cellClass = Bundle.main.classNamed(cellDescriptor.className) as? UICollectionViewCell.Type {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I can't launch tests, I opened an issue on CwlPreconditionTesting (mattgallagher/CwlPreconditionTesting#15)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you pull, unit tests are up.

@swoolcock
Copy link
Contributor Author

Will look at it tomorrow, currently 1am in Australia :P

@gwennguihal gwennguihal merged commit ceb2e2c into sncf-connect-tech:master Jan 14, 2019
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

Successfully merging this pull request may close these issues.

2 participants