The following code has two Buttons embedded in a VStack embedded in a Form. The action event for both buttons proceed when either button is tapped. I would expect them to act independently. Anyone have any ideas?
import SwiftUI
struct Test : View {
var body: some View {
Form {
VStack {
Button(action: {
print("Here 1")
}) {
Text("Clear image")
}
Button(action: {
print("Here 2")
}) {
Text("Clear image")
}
}
}
}
}