A view that arranges its subviews in a vertical line.
<VStack ... />Children in the array part stack top-to-bottom with 8pt sibling
spacing and no implicit outer padding. Set padding explicitly when
the group needs margins. Hidden children consume no space and add no
spacing.
| Name | Type | Required | Description |
|---|---|---|---|
spacing |
number | optional | Sibling spacing in points. |
padding |
number | optional | Explicit outer margins. |
alignment |
string | optional | Cross-axis alignment. |
fillWidth |
boolean | optional | Expand to the parent width. |
fillHeight |
boolean | optional | Expand to the parent height. |
<VStack><Label>Line 1</Label><Label>Line 2</Label></VStack>
- AppKit NSView (vertical layout). UIKit UIView (vertical layout).
Source: lua/embedded/AppKit.lua:418 (AppKit.VStack)