mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Expose completed nodes array by kind
This commit is contained in:
committed by
Levi McCallum
parent
aa1842e484
commit
e4f274aebb
@@ -80,7 +80,7 @@
|
||||
- (ASDisplayNode *)supplementaryNodeOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
ASDisplayNodeAssertMainThread();
|
||||
return [self internalCompletedNodes][kind][indexPath.section][indexPath.item];
|
||||
return [self completedNodesOfKind:kind][indexPath.section][indexPath.item];
|
||||
}
|
||||
|
||||
- (id<ASCollectionDataControllerSource>)collectionDataSource
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
*/
|
||||
- (void)willReloadData;
|
||||
|
||||
- (NSMutableDictionary *)internalCompletedNodes;
|
||||
- (NSArray *)completedNodesOfKind:(NSString *)kind;
|
||||
|
||||
/**
|
||||
* Measure and layout the given nodes in optimized batches, constraining each to a given size.
|
||||
|
||||
@@ -781,9 +781,9 @@ static void *kASSizingQueueContext = &kASSizingQueueContext;
|
||||
|
||||
#pragma mark - Data Querying (Subclass API)
|
||||
|
||||
- (NSMutableDictionary *)internalCompletedNodes
|
||||
- (NSArray *)completedNodesOfKind:(NSString *)kind
|
||||
{
|
||||
return _completedNodes;
|
||||
return _completedNodes[kind];
|
||||
}
|
||||
|
||||
#pragma mark - Data Querying (External API)
|
||||
|
||||
Reference in New Issue
Block a user