![](https://framerusercontent.com/images/qcFYLqAf5bTgt6p83ZfixNoRy8.png)
Creating a Horizontal Stack
A HStack allows you to arrange subviews horizontally.
![](https://framerusercontent.com/images/GUDKNFgXr2F789z79Lh6XVLQU.png)
Customizing Spacing
Use the spacing
parameter to set a custom spacing between subviews of a HStack
.
![](https://framerusercontent.com/images/94AkzcKwsRKb8dWYEWpVhZ5hLxo.png)
Customizing Alignment
By default, the HStack's alignment is set to the center. You can set the alignment of subviews in a HStack to top, center, or bottom.
![](https://framerusercontent.com/images/AI3zUYHt9QcXlCgsvwNQKGb39M.png)
![](https://framerusercontent.com/images/zc08t0EfculSGW9sVP3WTQ4xCz8.png)
![](https://framerusercontent.com/images/mVT1Ag83oBgNlxxDKoxB5whRmvo.png)
Combined with Vertical Stack
You can nest a HStack into a VStack and vice-versa as they are all views. This allows you to create more complex layouts.
![](https://framerusercontent.com/images/5Yf9KeuzVEnvKK6P7S8v5OE7Us.png)