I have this view hierarchy
RouterDashboardViewController : RootViewController
RootViewController : UIViewController
Currently, RouterDashboardViewController instance is in the navigation stack. When I reset rootViewController of NavigationController then RouerDashboardInstance still exist in memory because I can check my deinit{}
method not gets called.Below are the stack traces in Instruments but am not able to detect any reason why my RouterDashboard instance not get deallocated. I am sure there will be retain cycles which keeps RouterDashboard instance still alive. One more thing am not understanding these stack traces because ViewDidLoad() method called several times.