Guest User

Untitled

a guest
Sep 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. @UIApplicationMain
  2. class AppDelegate: UIResponder, UIApplicationDelegate {
  3.  
  4. var window: UIWindow?
  5.  
  6. private let dependencies: AppDelegateDependencyResolver = AppDelegateDependencyContainer()
  7.  
  8. // weaver: homeViewController = HomeViewController <- UIViewController
  9. // weaver: homeViewController.scope = .container
  10.  
  11. // weaver: urlSession = URLSession
  12. // weaver: urlSession.scope = .container
  13. // weaver: urlSession.customRef = true
  14.  
  15. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
  16.  
  17. window = UIWindow()
  18.  
  19. window?.rootViewController = UINavigationController(rootViewController: dependencies.homeViewController)
  20. window?.makeKeyAndVisible()
  21.  
  22. return true
  23. }
  24. }
Add Comment
Please, Sign In to add comment