Skip to content

Commit

Permalink
🐛 로그아웃 화면 전환 수정 및 Mock 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
loinsir committed Dec 6, 2023
1 parent 44882b5 commit 6b91a38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions iOS/Layover/Layover/Scenes/Setting/SettingRouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 6b91a38

Please sign in to comment.