I am developing an app using xcode (Swift) with out using the storyboard but i have a problem when a user logs in to the app they are transferred to the home page but the viewer controller does not reach the top of the screen and when i change to a different tab i can see the login screen in the background.
This is the code i use to get transferred to the home screen once the user logs in:
let mainTabVC = MainTabVC()
self.present(mainTabVC, animated: true,completion: nil)
is there any way to fix this?