In my application I have a UINavigationController, After authentication I run perform segue(Push replace) for navigating to UINavigationController, when app goes to background I present Authentication page again, I do this in a classed I named it ScreenLocker
UIApplication.shared.keyWindow?.rootViewController = vcAuthentication
But after n
time's app goes to background I have n
UINavigationControllers and one Authentication controller (when I saw debug view hierarchy I found it), know for showing UINavigationController How can I remove Authentication view controller?
My current view controller is highlighted view controller, it's in front of all views, I want to remove it and showing another views.