Skip to main content

Module stack

Module stack 

Source
Expand description

The two stacks, at the system gap.

SwiftUI’s HStack and VStack: spacing is what you get by not asking for it, and a caller who needs another value chains .gap(..) the way VStack(spacing: 12) says it. The number leaves the call site rather than taking a name.

Functions§

column
A column at Theme::SPACE. SwiftUI centres a VStack’s children across; this does not, because flexbox stretches them and every column in the crate is built on that.
row
A row at Theme::SPACE, centred across — SwiftUI’s HStack, whose default alignment is .center.