adds convenience methods to return a vertical and horizontal stack spec

This commit is contained in:
Samuel Hsiung
2015-10-29 19:39:32 -07:00
parent f11b6ac914
commit 29a12834b0
2 changed files with 24 additions and 0 deletions

View File

@@ -57,4 +57,14 @@
*/
+ (instancetype)stackLayoutSpecWithDirection:(ASStackLayoutDirection)direction spacing:(CGFloat)spacing justifyContent:(ASStackLayoutJustifyContent)justifyContent alignItems:(ASStackLayoutAlignItems)alignItems children:(NSArray *)children;
/**
* @return A stack layout spec with direction of ASStackLayoutDirectionVertical
**/
+ (instancetype)verticalStackLayoutSpec;
/**
* @return A stack layout spec with direction of ASStackLayoutDirectionHorizontal
**/
+ (instancetype)horizontalStackLayoutSpec;
@end