Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit a338d81

Browse files
committed
Fix a warning preventing pod spec validation. (#2989)
* Fix a warning preventing pod spec validation. * Add comment, thanks @adlai.
1 parent 1917cfe commit a338d81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

AsyncDisplayKit/IGListAdapter+AsyncDisplayKit.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ - (void)setASDKCollectionNode:(ASCollectionNode *)collectionNode
3636
collectionNode.delegate = dataSource;
3737
__weak IGListAdapter *weakSelf = self;
3838
[collectionNode onDidLoad:^(__kindof ASCollectionNode * _Nonnull collectionNode) {
39-
weakSelf.collectionView = collectionNode.view;
39+
// We manually set the superclass of ASCollectionView to IGListCollectionView at runtime.
40+
// Issue tracked at https://github.com/Instagram/IGListKit/issues/409
41+
weakSelf.collectionView = (IGListCollectionView *)collectionNode.view;
4042
}];
4143
}
4244

0 commit comments

Comments
 (0)