This is my code in scene delegate
guard let windowScene = (scene as? UIWindowScene) else { return }
window = UIWindow(frame: windowScene.coordinateSpace.bounds)
window?.windowScene = windowScene
let navController = UINavigationController(rootViewController:HomeViewViewController())
window?.rootViewController = navController
window?.makeKeyAndVisible()
And in my home page I do not see any navigation Bar
I am using xib and Xcode 13.1
Any help is appreciated
CodePudding user response:
if you initialise a rootController programmatically you also have to remove reference to main storyboard from: