Add baseline support to ASStackLayoutSpec

This commit is contained in:
ricky cancro
2015-08-12 16:55:12 -07:00
committed by rcancro
parent 80bbf79046
commit f289b3345a
8 changed files with 56 additions and 2 deletions

View File

@@ -57,6 +57,16 @@
*/
@property (nonatomic, readwrite) ASStackLayoutAlignSelf alignSelf;
/**
* @abstract Used for baseline alignment. The distance from the top of the object to its baseline.
*/
@property (nonatomic, readwrite) CGFloat ascender;
/**
* @abstract Used for baseline alignment. The distance from the baseline of the object to its bottom.
*/
@property (nonatomic, readwrite) CGFloat descender;
/**
* @abstract Calculate a layout based on given size range.
*