Templates

Part 4 — Hello, Vertical Stacks!

7
Open in DetailsPro

Having fun with those Horizontal Stacks? Oh! Wonderful! We are so glad to hear that. You’re going to be using those all over the place. Now, when you’re ready, check this sample out.


Vertical Stacks are another SwiftUI thing you’re going to use basically all the time. They are super simple too.


In this sample, all we did was take the Part 3 sample and change the Horizontal Stack to a Vertical Stack! These are the same exact elements that were inside Part 3!


Give it a try. There’s all sorts of advanced things you’ll be doing with these, like changing their alignment setting so that all the elements inside the Vertical Stack line up on either side, or automatically converting a Vertical Stack to a Horizontal Stack in-place, but today is for exploration and checking out this humble start.

MORE BY DETAILSPRO