LavaUI docs GitHub

enum StackAlignment

Swift

enum StackAlignment

Cross-axis placement of children in an HStack or VStack.

Sources/LavaUI/Stack.swift:2

Cases

case start

Children hug the top (in an HStack) or the left (in a VStack).

Sources/LavaUI/Stack.swift:4

case center

Children are centred across the stack.

Sources/LavaUI/Stack.swift:6

case end

Children hug the bottom (in an HStack) or the right (in a VStack).

Sources/LavaUI/Stack.swift:8

case stretch

Expand children across the stack's cross axis when their size is auto.

Sources/LavaUI/Stack.swift:10