mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
[ASCollectionView / ASPagerNode] Move constrainedSizeForNodeAtIndexPath from the DataSource to the Delegate (#2065)
* Move constrainedSizeForNodeAtIndexPath from the DataSource to the Delegate in ASCollectionView and ASPagerNode * Fix ASPagerNode declaration of dataSource and delegate As ASPagerDataSource does not inherit from ASCollectionDataSource it's not possible to declare it as property. * Update comment
This commit is contained in:
committed by
Adlai Holler
parent
2c9e51e8f7
commit
93be894e0c
@@ -47,7 +47,7 @@ static UIColor *OverViewASPagerNodeRandomColor() {
|
||||
|
||||
#pragma mark - OverviewASPagerNode
|
||||
|
||||
@interface OverviewASPagerNode () <ASPagerNodeDataSource>
|
||||
@interface OverviewASPagerNode () <ASPagerDataSource, ASPagerDelegate>
|
||||
@property (nonatomic, strong) ASPagerNode *node;
|
||||
@property (nonatomic, copy) NSArray *data;
|
||||
@end
|
||||
@@ -61,6 +61,7 @@ static UIColor *OverViewASPagerNodeRandomColor() {
|
||||
|
||||
_node = [ASPagerNode new];
|
||||
_node.dataSource = self;
|
||||
_node.delegate = self;
|
||||
[self addSubnode:_node];
|
||||
|
||||
return self;
|
||||
|
||||
Reference in New Issue
Block a user