I've got a View with
In iOS 13.5, when I navigate away from the view via a NavigationLink, it prints "disapear"; when I close the new view and get back to the first view "appear" gets printed. All as it should be.
Now in iOS 14, this happens instead:
It runs havoc with my login, as I set @Binding vars in the second view, which are evaluated back in the first view when .onAppear() runs. Worked great until iOS 14...
Code Block .onAppear(perform: { print("appear") }) .onDisappear(perform: { print("disappear") })
set on it.In iOS 13.5, when I navigate away from the view via a NavigationLink, it prints "disapear"; when I close the new view and get back to the first view "appear" gets printed. All as it should be.
Now in iOS 14, this happens instead:
when the view is first shown, it prints "appear"
when navigating away from the view, it prints "disappear" and "appear"
when navigating back to the view, nothing gets printed
when navigating away from the view, then "appear" gets printed, along with the expected "disappear"
It runs havoc with my login, as I set @Binding vars in the second view, which are evaluated back in the first view when .onAppear() runs. Worked great until iOS 14...