I would like to build a screen with SwiftUI which consists out of three HStacks. Each of these HStacks has a VStack with a button and some text under the button. How can I make sure that the buttons are all aligned in the center regardless how long the text may be?
Asked
Active
Viewed 84 times
0
-
Please add some code and design for what you want. – Raja Kishan Jan 16 '21 at 10:08
-
The three H Stacks need to be contained in some other view (eg a VStack), but apart from that, as far as I can see, the layout that you're asking for is default SwiftUI behaviour for a VStack in an HStack. – Kramer Jan 16 '21 at 15:08