mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
adds convenience methods to return a vertical and horizontal stack spec
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user