View Source HStack
<HStack>
Container that lays out its children in a horizontal line.
Overview
<HStack>
<Text>Leading</Text>
<Spacer />
<Text>Trailing</Text>
</HStack>
Attributes
SwiftUI Documentation
See SwiftUI.HStack
for more details on this View.
References
Link to this reference
alignment
The vertical alignment of views within the stack. Defaults to center-aligned.
Discussion
See VerticalAlignment
.
Link to this reference
spacing
The spacing between views in the stack. If not provided, the stack uses the system spacing.