I'm receiving an error message in the console when navigating back to a View. I'll show you wants happening:
So, let's say I have a NavigationView()
in a ParentView, and what I wanted in the app was minimal BackButton appearance, so I added this to the bottom of the ParentView file:
extension UINavigationController {
open override func viewWillLayoutSubviews() {
navigationBar.topItem?.backButtonDisplayMode = .minimal
}
}
ParentView -> ChildView1 -> ChildView2
On ChildView1, I interact with a Picker. If a certain option is selected from the picker, a NavLink appears to click towards ChildView2.
Now when I return back to ChildView1 from ChildView2, I not only get this error message in the console but the BackButton on ChildView1 also disappears and the ability to go back to the ParentView is gone.
Error:
[6326:2400762] changing items while animating can result in a corrupted navigation bar
I can't seem to find much documentation out there regarding this error when searching, any advice? Thanks!