This is a major code challenge,I believe there will definitely be warriors who will challenge this difficulty

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,

This is a major code challenge,I believe there will definitely be warriors who will challenge this difficulty
 
 
Q