[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:
Michael Schneider
2016-08-12 15:37:23 -07:00
committed by Adlai Holler
parent 2c9e51e8f7
commit 93be894e0c
8 changed files with 74 additions and 50 deletions

View File

@@ -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;