Created
October 1, 2019 15:26
-
-
Save asilturk/5faf1e2fdc496f50227ad55570543b88 to your computer and use it in GitHub Desktop.
RootViewManager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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