-
Notifications
You must be signed in to change notification settings - Fork 20
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
Adds support for UICollectionViewCells without a nib/xib #7
Conversation
…nil optionals (fixes crashing test)
In this case you should use NSStringFromClass on your cell class.
Thank you for the pull request! |
There was a problem hiding this 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 ?
There was a problem hiding this 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 :)
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
Will look at it tomorrow, currently 1am in Australia :P |
Closes issue #6
Also fixes a crashing test due to unwrapping nil optionals.