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

The vertical alignment of views within the stack. Defaults to center-aligned.

Discussion

See VerticalAlignment.

The spacing between views in the stack. If not provided, the stack uses the system spacing.