mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-11 15:10:37 +00:00
- _populateFromDataSourceWithSectionIndexSet doesn't accept a mutanle array but allocate one itself. - Remove _populateFromEntireDataSourceWithMutableContexts. - ASIndexedNodeContext executes its block, nil out the block and return the result.
26 lines
694 B
Objective-C
26 lines
694 B
Objective-C
//
|
|
// ASIndexedNodeContext.h
|
|
// AsyncDisplayKit
|
|
//
|
|
// Created by Huy Nguyen on 2/28/16.
|
|
// Copyright © 2016 Facebook. All rights reserved.
|
|
//
|
|
|
|
#import <AsyncDisplayKit/ASDataController.h>
|
|
|
|
@interface ASIndexedNodeContext : NSObject
|
|
|
|
@property (nonatomic, readonly, strong) NSIndexPath *indexPath;
|
|
@property (nonatomic, readonly, assign) ASSizeRange constrainedSize;
|
|
|
|
- (instancetype)initWithNodeBlock:(ASCellNodeBlock)nodeBlock
|
|
indexPath:(NSIndexPath *)indexPath
|
|
constrainedSize:(ASSizeRange)constrainedSize;
|
|
|
|
/**
|
|
* Returns a node allocated by executing node block. Node block will be nil out immediately.
|
|
*/
|
|
- (ASCellNode *)allocateNode;
|
|
|
|
@end
|