ASStackLayoutElement Protocol Reference

Conforms to NSObject
Declared in ASStackLayoutElement.h

Overview

Layout options that can be defined for an ASLayoutElement being added to a ASStackLayoutSpec.

  spacingBefore required method

Additional space to place before this object in the stacking direction. Used when attached to a stack layout.

@property (nonatomic, readwrite) CGFloat spacingBefore

Declared In

ASStackLayoutElement.h

  spacingAfter required method

Additional space to place after this object in the stacking direction. Used when attached to a stack layout.

@property (nonatomic, readwrite) CGFloat spacingAfter

Declared In

ASStackLayoutElement.h

  flexGrow required method

If the sum of children's stack dimensions is less than the minimum size, how much should this component grow? This value represents the “flex grow factor” and determines how much this component should grow in relation to any other flexible children.

@property (nonatomic, readwrite) CGFloat flexGrow

Declared In

ASStackLayoutElement.h

  flexShrink required method

If the sum of children's stack dimensions is greater than the maximum size, how much should this component shrink? This value represents the “flex shrink factor” and determines how much this component should shink in relation to other flexible children.

@property (nonatomic, readwrite) CGFloat flexShrink

Declared In

ASStackLayoutElement.h

  flexBasis required method

Specifies the initial size in the stack dimension for this object. Default to ASDimensionAuto Used when attached to a stack layout.

@property (nonatomic, readwrite) ASDimension flexBasis

Declared In

ASStackLayoutElement.h

  alignSelf required method

Orientation of the object along cross axis, overriding alignItems Used when attached to a stack layout.

@property (nonatomic, readwrite) ASStackLayoutAlignSelf alignSelf

Declared In

ASStackLayoutElement.h

  ascender required method

Used for baseline alignment. The distance from the top of the object to its baseline.

@property (nonatomic, readwrite) CGFloat ascender

Declared In

ASStackLayoutElement.h

  descender required method

Used for baseline alignment. The distance from the baseline of the object to its bottom.

@property (nonatomic, readwrite) CGFloat descender

Declared In

ASStackLayoutElement.h