Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @UIApplicationMain
- class AppDelegate: UIResponder, UIApplicationDelegate {
- var window: UIWindow?
- private let dependencies: AppDelegateDependencyResolver = AppDelegateDependencyContainer()
- // weaver: homeViewController = HomeViewController <- UIViewController
- // weaver: homeViewController.scope = .container
- // weaver: urlSession = URLSession
- // weaver: urlSession.scope = .container
- // weaver: urlSession.customRef = true
- func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
- window = UIWindow()
- window?.rootViewController = UINavigationController(rootViewController: dependencies.homeViewController)
- window?.makeKeyAndVisible()
- return true
- }
- }
Add Comment
Please, Sign In to add comment