I'm new in Swift and I've this issue: I load the main storyboard and if the user is nil then I load another storyboard with other scenes. For doing this I run this code:
override func viewDidAppear(_ animated: Bool) {
if (true) {
let loginScene = UIStoryboard(name: "NilUser", bundle: nil).instantiateViewController(withIdentifier: "loginScene") as! LoginController
loginScene.modalPresentationStyle = .fullScreen
show(loginScene, sender: nil)
}
}
I know that the if statement is always true, I want it at the moment. I also checked if the login scene was the initial one, but even like this the navigation bar doesn't show itself. The problem is that now ini the login scene I don't see the navigation bar and I don't get why. What can I do? If you need more explanations I'll give you. Thanks!