pass a binding variable to a function of a class in swiftui

Viewed 171

i have a class with a function like this

class someClass {

func someWorkNeedToDo(var1: String) {

@Binding var action: Bool

}

now i want to pass a Binded Boolean to this function so that i can control the navigation. what is the correct way to do this.

Thanks

0 Answers
Related