"set root view controller ios 13" Code Answer's
You're definitely familiar with the best coding language Swift that developers use to develop their projects and they get all their queries like "set root view controller ios 13" answered properly. Developers are finding an appropriate answer about set root view controller ios 13 related to the Swift coding language. By visiting this online portal developers get answers concerning Swift codes question like set root view controller ios 13. Enter your desired code related query in the search bar and get every piece of information about Swift code related question on set root view controller ios 13.
set root view controller ios 13
static func redirectToMainNavRVC(currentVC: UIViewController){
let appDelegate = UIApplication.shared.delegate as! AppDelegate
let vc = UIStoryboard(name: appDelegate.storyBoardName, bundle: nil).instantiateViewController(withIdentifier: "MainNavigationViewController") as! MainNavigationViewController
if #available(iOS 13.0, *){
if let scene = UIApplication.shared.connectedScenes.first{
guard let windowScene = (scene as? UIWindowScene) else { return }
print(">>> windowScene: \(windowScene)")
let window: UIWindow = UIWindow(frame: windowScene.coordinateSpace.bounds)
window.windowScene = windowScene //Make sure to do this
window.rootViewController = vc
window.makeKeyAndVisible()
appDelegate.window = window
}
} else {
appDelegate.window?.rootViewController = vc
appDelegate.window?.makeKeyAndVisible()
}
}
All those coders who are working on the Swift based application and are stuck on set root view controller ios 13 can get a collection of related answers to their query. Programmers need to enter their query on set root view controller ios 13 related to Swift code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about set root view controller ios 13 for the programmers working on Swift code while coding their module. Coders are also allowed to rectify already present answers of set root view controller ios 13 while working on the Swift language code. Developers can add up suggestions if they deem fit any other answer relating to "set root view controller ios 13". Visit this developer's friendly online web community, CodeProZone, and get your queries like set root view controller ios 13 resolved professionally and stay updated to the latest Swift updates.