Skip to content

Instantly share code, notes, and snippets.

@asilturk
Created October 1, 2019 15:26
Show Gist options
  • Save asilturk/5faf1e2fdc496f50227ad55570543b88 to your computer and use it in GitHub Desktop.
Save asilturk/5faf1e2fdc496f50227ad55570543b88 to your computer and use it in GitHub Desktop.
RootViewManager
import UIKit
class RootViewManager {
static func setRootView(_ targetVC: UIViewController) {
let appDelegate = UIApplication.shared.delegate as! AppDelegate
appDelegate.window?.rootViewController = targetVC
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment