【发布时间】:2021-11-07 12:10:52
【问题描述】:
我正在使用 iOS 14 和 Xcode 12 来学习 SwiftUI。
我想用 Button 添加新的或更多的VStacks\。
有人知道如何使用这些按钮并添加一个新的VStack吗?
任何帮助将不胜感激。 这是我的代码。
Button(action: {
VStack{
Text("hello")
}
}, label: {
Image(systemName: "plus.circle.fill")
.foregroundColor(.black)
})
【问题讨论】:
标签: ios swift button swiftui vstack