Fix a warning preventing pod spec validation. (#2989)

* Fix a warning preventing pod spec validation.

* Add comment, thanks @adlai.
This commit is contained in:
Garrett Moon
2017-02-06 13:06:52 -08:00
committed by GitHub
parent 9b77f77656
commit 4e8a2640db

View File

@@ -36,7 +36,9 @@
collectionNode.delegate = dataSource;
__weak IGListAdapter *weakSelf = self;
[collectionNode onDidLoad:^(__kindof ASCollectionNode * _Nonnull collectionNode) {
weakSelf.collectionView = collectionNode.view;
// We manually set the superclass of ASCollectionView to IGListCollectionView at runtime.
// Issue tracked at https://github.com/Instagram/IGListKit/issues/409
weakSelf.collectionView = (IGListCollectionView *)collectionNode.view;
}];
}