mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +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
@@ -335,9 +335,9 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/**
|
||||
* Similar to -visibleCells.
|
||||
*
|
||||
* @return an array containing the nodes being displayed on screen.
|
||||
* @return an array containing the nodes being displayed on screen. This must be called on the main thread.
|
||||
*/
|
||||
- (NSArray<__kindof ASCellNode *> *)visibleNodes AS_WARN_UNUSED_RESULT;
|
||||
@property(readonly, copy) NSArray<__kindof ASCellNode *> *visibleNodes;
|
||||
|
||||
/**
|
||||
* Retrieves the node for the item at the given index path.
|
||||
|
||||
Reference in New Issue
Block a user