How to fix Swift warning in iOS “Multiple Closures with Trailing Closure Violation”



I am fairly new to Swift development and I’m getting the following warning:

Multiple Closures with Trailing Closure Violation: Trailing closure
syntax should not be used when passing more than one closure argument

I don’t really understand what the warnings means and how to fix it. I already googled and looked into other posts on Stackoverflow but couldn’t wrap my head around it.

My code looks like this:

Button(action: {
  address = "123 Fakestreet"
}) {
  Text("Start search")

Question: How can I refactor my code so the functionality stays the same but the warning goes away?