Added method to ASLayoutable to allow a layoutable to override how it will be added to the layoutSpec.

Also moved ASStaticLayoutSpec to act more like the other layouts.
This commit is contained in:
rcancro
2015-08-25 14:04:06 -07:00
parent 052f4c44f1
commit 7446578f6f
17 changed files with 191 additions and 169 deletions

View File

@@ -55,7 +55,4 @@
*/
+ (instancetype)stackLayoutSpecWithDirection:(ASStackLayoutDirection)direction spacing:(CGFloat)spacing justifyContent:(ASStackLayoutJustifyContent)justifyContent alignItems:(ASStackLayoutAlignItems)alignItems children:(NSArray *)children;
- (void)addChild:(id<ASStackLayoutable>)child;
- (void)addChildren:(NSArray *)children;
@end