matteopuc / swiftui-navigation-stack

An alternative SwiftUI NavigationView implementing classic stack-based navigation giving also some more control on animations and programmatic navigation.
MIT License
930 stars 87 forks source link

Value not changed by @Binding #89

Open RaiMQayyum opened 1 year ago

RaiMQayyum commented 1 year ago

FirstView @State var isCompleted : Bool = false

SecondView @Binding var isCompleted : Bool

        Button(action: {
            self.isCompleted = true
            self.navigationStack.pop(to: .view(withId: "FirstView"))
        }, label: {
            Text("Complete")
        })