Contents

HStackLayout

A horizontal container that you can use in conditional layouts.

Declaration

@frozen struct HStackLayout

Overview

This layout container behaves like an HStack, but conforms to the Layout protocol so you can use it in the conditional layouts that you construct with AnyLayout. If you don’t need a conditional layout, use HStack instead.

Topics

Creating a horizontal stack

Getting the stack’s properties

See Also

Transitioning between layout types