mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
[ASTableNode] expose ASTableView's -visibleNodes (#2449)
* expose ASTableView's -visibleNodes getter at the ASTableNode level * add safegaurds * make visibleNodes a read only property for ASTableNode * make collectionNode .visibleNodes property
This commit is contained in:
committed by
Adlai Holler
parent
3638feffd4
commit
97e23776e4
@@ -349,7 +349,8 @@
|
||||
|
||||
- (NSArray<__kindof ASCellNode *> *)visibleNodes
|
||||
{
|
||||
return [self.view visibleNodes];
|
||||
ASDisplayNodeAssertMainThread();
|
||||
return self.isNodeLoaded ? [self.view visibleNodes] : @[];
|
||||
}
|
||||
|
||||
- (NSIndexPath *)indexPathForNode:(ASCellNode *)cellNode
|
||||
|
||||
Reference in New Issue
Block a user