Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import UIKit
  2.  
  3. class RootViewManager {
  4.  
  5. static func setRootView(_ targetVC: UIViewController) {
  6. let appDelegate = UIApplication.shared.delegate as! AppDelegate
  7. appDelegate.window?.rootViewController = targetVC
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement