Good friend, as I understood, the user after login would have to go to the main screen of the App.
Your question requires more technical information for more precise guidance.
Does your app use Storyboard browsing, or is it programmatically done?
Is the login screen called by modal, push or is it a custom AlertView to be a login screen?
Assuming your login screen is another UIViewController, and requires only a "1 step" to go back to the main one, you can try one of these methods below:
popToRootViewControllerAnimated:
popoverPresentationController
dismissViewControllerAnimated:YES completion:nil
popViewControllerAnimated:
If you are interested in using an UnWind, you can check out this tutorial:
link