Set rootViewController programmatically not working, picking initial view controller from storyboard only in Xcode 11
问题 Trying to change the root view controller programmatically, initially in storyboard as initial view controller is checked. Every time same viewController is opened which is set up as initialViewController in storyboard. Please guide. Sharing below what code tried so far: let isLoggedIn = UserDefaults.standard.bool(forKey: kIsLoggedIn) if isLoggedIn{ //Welcome Screen for Touch ID let storyboard = UIStoryboard(name: "Main", bundle: nil) // let rootVC = storyboard.instantiateViewController