When I enter the following code. The screen keeps showing:Argument passed to call that takes no arguments? who can solve this?
Button(action: { self.title = "Button #2 was pressed" }, label: { Text("Button") })
When I enter the following code. The screen keeps showing:Argument passed to call that takes no arguments? who can solve this?
Button(action: { self.title = "Button #2 was pressed" }, label: { Text("Button") })
Come on, boldly express your solution, this is the best reflection of your personal ability
You need to include more context. What is the view this is in? How is title declared? I'm not seeing an error if title is declared as a state variable. I don't see the error you mention at all,