How to create stacks using VStack and HStack - SwiftUI by Example

preview_player
Показать описание
Our SwiftUI content views must return one view, which is the view we want them to show. When we want more than one view on screen at a time we need to tell SwiftUI how to arrange them and that’s where stacks come in.

Рекомендации по теме
Комментарии
Автор

Questions? Comments? Tweet me @twostraws.

twostraws
Автор

Hi. Is
 
{
VStack {
Text("SwiftUI")
Text("rocks")
}
}

a closure? Or it's something new from the SwiftUI framework?
Thanks.

SevenDeMagnus
Автор

I hate when people explaining without details, everybody can know this basic information - dislike

tx