I am trying to skip the login screen in appdelegate and i am using world known method of assigning the next view controller to rootviewcontroller but somehow it's not working for testing purposes I have not set any condition and this code is directly executed but doesn't reflect in the app.
my loginViewController is embedded in navigationController
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let homepage = storyboard.instantiateViewController(withIdentifier: "mainTabBarController") as! mainTabBarController
self.window?.rootViewController = homepage
self.window?.makeKeyAndVisible()
I have gone through a lot so answers for this but they are suggesting the same method.
"comment for extra info on the question".
If you are using Xcode 11 and above
SceneDelegate.swift
UISceneSession Lifecycle
methods from AppDelegate
var window: UIWindow?
in AppDelegate
classInfo.plist
and delete Application Scene Manifest
didFinishLaunchingWithOptions
methodself.window = UIWindow(frame: UIScreen.main.bounds)
self.window?.rootViewController = //...
self.window?.makeKeyAndVisible()