mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Merge commit '67cb789f862fa7572a06159c230612ef3ad414c4'
# Conflicts: # AsyncDisplayKit/Details/ASEventLog.h
This commit is contained in:
@@ -224,8 +224,10 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
|
||||
@end
|
||||
|
||||
@implementation ASCollectionView
|
||||
@synthesize asyncDelegate = _asyncDelegate;
|
||||
@synthesize asyncDataSource = _asyncDataSource;
|
||||
{
|
||||
__weak id<ASCollectionDelegate> _asyncDelegate;
|
||||
__weak id<ASCollectionDataSource> _asyncDataSource;
|
||||
}
|
||||
|
||||
// Using _ASDisplayLayer ensures things like -layout are properly forwarded to ASCollectionNode.
|
||||
+ (Class)layerClass
|
||||
@@ -368,6 +370,11 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
|
||||
}
|
||||
}
|
||||
|
||||
- (id<ASCollectionDataSource>)asyncDataSource
|
||||
{
|
||||
return _asyncDataSource;
|
||||
}
|
||||
|
||||
- (void)setAsyncDataSource:(id<ASCollectionDataSource>)asyncDataSource
|
||||
{
|
||||
// Changing super.dataSource will trigger a setNeedsLayout, so this must happen on the main thread.
|
||||
@@ -418,6 +425,11 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
|
||||
}
|
||||
}
|
||||
|
||||
- (id<ASCollectionDelegate>)asyncDelegate
|
||||
{
|
||||
return _asyncDelegate;
|
||||
}
|
||||
|
||||
- (void)setAsyncDelegate:(id<ASCollectionDelegate>)asyncDelegate
|
||||
{
|
||||
// Changing super.delegate will trigger a setNeedsLayout, so this must happen on the main thread.
|
||||
|
||||
Reference in New Issue
Block a user