What is the best way to have a child subview take up 2/3rds of the space in SwiftUI instead of the default 50/50 split?

前端 未结 0 1579
情歌与酒
情歌与酒 2021-01-02 13:02

It looks like when using VStack in SwiftUI, if you have 2 items, it always takes up 50% for each of those two items.

NavigationView {
VStack {
    Text("         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题