Implement simple horizontal paging node

This commit is contained in:
Levi McCallum
2015-12-07 19:12:34 -08:00
parent 8349be288b
commit aea5a3318e
19 changed files with 809 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
//
// PageNode.m
// Sample
//
// Created by McCallum, Levi on 12/7/15.
// Copyright © 2015 Facebook. All rights reserved.
//
#import "PageNode.h"
@implementation PageNode
- (ASLayout *)calculateLayoutThatFits:(ASSizeRange)constrainedSize
{
return [ASLayout layoutWithLayoutableObject:self size:constrainedSize.max];
}
- (void)fetchData
{
[super fetchData];
NSLog(@"Fetching data for node: %@", self);
}
@end