Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.12 KB

VStack.md

File metadata and controls

49 lines (33 loc) · 1.12 KB

VStack

A view that arranges its subviews in a vertical line.

<VStack ... />

Overview

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.

Topics

Properties

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.

Example

<VStack><Label>Line 1</Label><Label>Line 2</Label></VStack>

Platform notes

  • AppKit NSView (vertical layout). UIKit UIView (vertical layout).

See Also


Source: lua/embedded/AppKit.lua:418 (AppKit.VStack)