I am trying to use this button (Start Game) to change a variable and run a function. How do I do so?
Button(action: self.addNewToDo, label: { Text("Start Game") .bold() .font(.title)
Button(action: toggleView = true, label: { Text("Start Game") .bold() .font(.title)
1.4m articles
1.4m replys
5 comments
57.0k users