diff --git a/iOS/Layover/Layover/Scenes/Setting/SettingConfigurator.swift b/iOS/Layover/Layover/Scenes/Setting/SettingConfigurator.swift index d5239d6..d7fea6d 100644 --- a/iOS/Layover/Layover/Scenes/Setting/SettingConfigurator.swift +++ b/iOS/Layover/Layover/Scenes/Setting/SettingConfigurator.swift @@ -25,7 +25,7 @@ final class SettingConfigurator: Configurator { let presenter = SettingPresenter() let router = SettingRouter() let settingWorker = SettingWorker() - let userWorker = MockUserWorker() + let userWorker = UserWorker() viewController.router = router viewController.interactor = interactor diff --git a/iOS/Layover/Layover/Scenes/Setting/SettingRouter.swift b/iOS/Layover/Layover/Scenes/Setting/SettingRouter.swift index ab71526..32a3764 100644 --- a/iOS/Layover/Layover/Scenes/Setting/SettingRouter.swift +++ b/iOS/Layover/Layover/Scenes/Setting/SettingRouter.swift @@ -37,9 +37,9 @@ final class SettingRouter: SettingRoutingLogic, SettingDataPassing { } func routeToLogin() { - let viewController = LoginViewController() - guard let rootNavigationController = viewController.view.window?.rootViewController + let loginViewController = LoginViewController() + guard let rootNavigationController = viewController?.view.window?.rootViewController as? UINavigationController else { return } - rootNavigationController.setViewControllers([viewController], animated: true) + rootNavigationController.setViewControllers([loginViewController], animated: true) } }