Skip to main content

AlignItems

Determines how the AutoLayout frame’s children should be aligned in primary/counter axis direction.

type AlignItems = 'center' | 'start' | 'end' | 'baseline'

Remarks

  • "start" and "end" correspond to:
    • left and right respectively for AutoLayout frames with "horizontal" direction.
    • top and bottom respectively for AutoLayout frames with "vertical" direction.
  • "baseline" can only be set on horizontal AutoLayout frames, and aligns all children along the text baseline.

On this page