mirror of
https://github.com/tappollo/IGListKit.git
synced 2026-05-26 14:37:00 +08:00
Fix crash in Examples-iOS app when tapping "Mixed Data"
Summary: Fix crash in Examples-iOS app when tapping "Mixed Data" Make GridItem conform to IGListDiffable now that NSObject+IGListDiffable category has been removed. - [x] All tests pass. Demo project builds and runs. - [ ] I added tests, an experiment, or detailed why my change isn't tested. - [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md) Closes https://github.com/Instagram/IGListKit/pull/251 Differential Revision: D4224337 Pulled By: jessesquires fbshipit-source-id: 16a437c4e5e45185481b4262ea7770f4a8559618
This commit is contained in:
committed by
Facebook Github Bot
parent
e1d5104255
commit
90cf9d5dfb
@@ -27,6 +27,18 @@ class GridItem: NSObject {
|
||||
|
||||
}
|
||||
|
||||
extension GridItem: IGListDiffable {
|
||||
|
||||
func diffIdentifier() -> NSObjectProtocol {
|
||||
return self
|
||||
}
|
||||
|
||||
func isEqual(toDiffableObject object: IGListDiffable?) -> Bool {
|
||||
return self === object ? true : self.isEqual(object)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
final class GridSectionController: IGListSectionController, IGListSectionType {
|
||||
|
||||
var object: GridItem?
|
||||
|
||||
Reference in New Issue
Block a user