Access to UITransitionView's From UIWindow

864 Views Asked by At

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?

enter image description here

enter image description here

My current view controller is highlighted view controller, it's in front of all views, I want to remove it and showing another views.

enter image description here

0

There are 0 best solutions below