I was following a tutorial for making a side menu which I want to implement into my home menu screen. The thing is I am having trouble presenting the side menu controller within only the home menu and not from the root view controller which is the Log in.
I tried working with the scene delegate:
guard let windowScene = (scene as? UIWindowScene) else { return }
window?.windowScene = windowScene
window = UIWindow(frame: UIScreen.main.bounds)
if let window = window {
var vc = LogInController()
if Auth.auth().currentUser?.uid != nil{
let vc = HomeMenu()
}
let nav = UINavigationController()
let mainView = vc
nav.viewControllers = [mainView]
window.rootViewController = nav
window.makeKeyAndVisible()
}
I am using Firebase for the log in functions. I am new to xcode and using navigation so any help in which I can access the side menu only in the home menu after logging in would help. Thank you.