Moved ASLayoutable* properties into ASLayoutOptions class

This commit is contained in:
rcancro
2015-08-28 09:36:22 -07:00
parent 61b72d2c46
commit 15b3fd6eab
25 changed files with 370 additions and 188 deletions

View File

@@ -94,7 +94,7 @@ static NSString *suffixForCenteringOptions(ASCenterLayoutSpecCenteringOptions ce
ASDisplayNode *backgroundNode = ASDisplayNodeWithBackgroundColor([UIColor redColor]);
ASStaticSizeDisplayNode *foregroundNode = ASDisplayNodeWithBackgroundColor([UIColor redColor]);
foregroundNode.staticSize = {10, 10};
foregroundNode.flexGrow = YES;
[ASLayoutSpec layoutOptionsForChild:foregroundNode].flexGrow = YES;
ASCenterLayoutSpec *layoutSpec =
[ASCenterLayoutSpec