Skip to content

Commit

Permalink
[Fix] sopt-makers#103 - 로그인 및 회원가입에서 rootview 변경을 통해 swipe 불가능하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
L-j-h-c committed Jan 11, 2023
1 parent c909767 commit 6155468
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 @@ -165,8 +165,8 @@ extension SignInVC {

output.isSignInSuccess.sink { isSignInSuccess in
if isSignInSuccess {
let missionListVC = self.factory.makeMissionListVC(sceneType: .default)
self.navigationController?.pushViewController(missionListVC, animated: true)
let navigation = UINavigationController(rootViewController: self.factory.makeMissionListVC(sceneType: .default))
ViewControllerUtils.setRootViewController(window: self.view.window!, viewController: navigation, withAnimation: true)
} else {
self.emailTextField.alertType = .invalidInput(text: "")
self.passwordTextField.alertType = .invalidInput(text: I18N.SignIn.checkAccount)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ extension SignUpCompleteVC {

extension SignUpCompleteVC {
@objc private func startButtonDidTap() {
let missionListVC = self.factory.makeMissionListVC(sceneType: .default)
self.navigationController?.pushViewController(missionListVC, animated: true)
let navigation = UINavigationController(rootViewController: self.factory.makeMissionListVC(sceneType: .default))
ViewControllerUtils.setRootViewController(window: self.view.window!, viewController: navigation, withAnimation: true)
}
}

Expand Down

0 comments on commit 6155468

Please sign in to comment.