【发布时间】:2021-04-08 19:57:32
【问题描述】:
在我的.tabItem 3 中,我的循环没有在预览中显示。我错过了什么吗?还在学习 swift...
.tabItem {
VStack {
Image(systemName: "gamecontroller")
Text("Tab 3")
VStack {
List{
ForEach(0..<100) { index in
Text("This is tab 3!")
}
}
}
}
}
【问题讨论】: