I am using iOS 14 and Xcode 12 to learn SwiftUI.
I want to use Button to add new or more VStacks\
.
Anyone know how to use the buttons and add a new VStack
?
Any help would be appreciate. This is my code.
Button(action: {
VStack{
Text("hello")
}
}, label: {
Image(systemName: "plus.circle.fill")
.foregroundColor(.black)
})