mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
ASLayoutSpec are temporarily mutable and have a more obj-c interface
This commit is contained in:
@@ -10,6 +10,13 @@
|
||||
|
||||
#import "ASStackLayoutSpec.h"
|
||||
|
||||
typedef struct {
|
||||
ASStackLayoutDirection direction;
|
||||
CGFloat spacing;
|
||||
ASStackLayoutJustifyContent justifyContent;
|
||||
ASStackLayoutAlignItems alignItems;
|
||||
} ASStackLayoutSpecStyle;
|
||||
|
||||
inline CGFloat stackDimension(const ASStackLayoutDirection direction, const CGSize size)
|
||||
{
|
||||
return (direction == ASStackLayoutDirectionVertical) ? size.height : size.width;
|
||||
|
||||
Reference in New Issue
Block a user