With SwiftUI's NavigationView we benefit from simplicity with code construction. However, not exposed, at least in these early stages are the overrides. Further, the reduced focus on managing the LifeCycle of views makes it difficult to find out what and when to call something based on the state of the view.
I would like to run some code when a user chooses to go back up a NavigationView hierarchy (i.e. click the back button supplied by NavigationView).
I've tried onDisappear() {} and it's other variants and I cannot get it to work. It seems like it is not called. The onAppear() {} does work so I'm stumped.
Any help would be SUPER APPRECIATED!