Skip to content

Commit

Permalink
[Fix] sopt-makers#87 - 회원가입 완료 후 메인 리스트 뷰로 화면 전환
Browse files Browse the repository at this point in the history
  • Loading branch information
lsj8706 committed Jan 7, 2023
1 parent 4ab7a86 commit 6d0c7c6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,25 @@ public class SignUpCompleteVC: UIViewController {
super.viewDidLoad()
self.setUI()
self.setLayout()
self.setAddTarget()
}
}

// MARK: - Methods

extension SignUpCompleteVC {

private func setAddTarget() {
startButton.addTarget(self, action: #selector(startButtonDidTap), for: .touchUpInside)
}
}

// MARK: - @objc Function

extension SignUpCompleteVC {
@objc private func startButtonDidTap() {
let missionListVC = self.factory.makeMissionListVC(sceneType: .default)
self.navigationController?.pushViewController(missionListVC, animated: true)
}
}

// MARK: - UI & Layout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ extension SignUpVC {

private func presentSignUpCompleteView() {
let signUpCompleteVC = factory.makeSignUpCompleteVC()
signUpCompleteVC.modalPresentationStyle = .fullScreen
self.present(signUpCompleteVC, animated: true)
let nav = UINavigationController(rootViewController: signUpCompleteVC)
nav.modalPresentationStyle = .fullScreen
nav.navigationBar.isHidden = true
self.present(nav, animated: true)
}
}

0 comments on commit 6d0c7c6

Please sign in to comment.