counterAxisAlignContent
Applicable only on auto-layout frames with layoutWrap
set to "WRAP"
. Determines how the wrapped tracks are spaced out inside of the auto-layout frame.
Signature
counterAxisAlignContent: 'AUTO' | 'SPACE_BETWEEN'
Remarks
Changing this property on a non-wrapping auto-layout frame will throw an error.
"AUTO"
: If all children of this auto-layout frame havelayoutAlign
set to"STRETCH"
, the tracks will stretch to fill the auto-layout frame. This is like flexboxalign-content: stretch
. Otherwise, each track will be as tall as the tallest child of the track, and will align based on the value ofcounterAxisAlignItems
. This is like flexboxalign-content: start | center | end
.counterAxisSpacing
is respected whencounterAxisAlignContent
is set to"AUTO"
."SPACE_BETWEEN"
: Tracks are all sized based on the tallest child in the track. The free space within the auto-layout frame is divided up evenly between each track. If the total height of all tracks is taller than the height of the auto-layout frame, the spacing will be 0.