So I've been trying to make a button that toggles a boolean variable when clicked, and here is what I have so far. How might I move/resize the button and add a statement that toggles the boolean variable named "yes"? Also, I have the line about Image("check") but I don't think it does anything and I don't know why. Any help would be appreciated!
import SwiftUI
import SDWebImage
import WebKit
struct ContentView: View {
var body: some View {
Button(action: {
}) {
Image("check").resizable().frame(width: 35, height: 35)
}.foregroundColor(.green)
}
}