Skip to content

Commit

Permalink
feat/#223 모임 추가 플로우 화면 연결 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
youz2me committed Jul 18, 2024
1 parent b66b122 commit 938735c
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ class CheckInviteCodeViewController: BaseViewController {


// MARK: LifeCycle

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)

navigationController?.isNavigationBarHidden = false
}

override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)

navigationController?.isNavigationBarHidden = true
}

override func loadView() {
view = checkInviteCodeView
Expand All @@ -26,7 +38,6 @@ class CheckInviteCodeViewController: BaseViewController {

override func setupView() {
view.backgroundColor = .white
self.tabBarController?.tabBar.isHidden = true

setupNavigationBarTitle(with: "내 모임 추가하기")
setupNavigationBarBackButton()
Expand Down Expand Up @@ -56,9 +67,6 @@ private extension CheckInviteCodeViewController {
)
)

inviteCodeViewController.modalTransitionStyle = .crossDissolve
inviteCodeViewController.modalPresentationStyle = .fullScreen

navigationController?.pushViewController(inviteCodeViewController, animated: true)
}

Expand All @@ -70,9 +78,6 @@ private extension CheckInviteCodeViewController {
)
)

createMeetingViewController.modalTransitionStyle = .crossDissolve
createMeetingViewController.modalPresentationStyle = .fullScreen

navigationController?.pushViewController(createMeetingViewController, animated: true)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ class CreateMeetingViewController: BaseViewController {


// MARK: - LifeCycle

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)

navigationController?.isNavigationBarHidden = false
}

override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)

navigationController?.isNavigationBarHidden = true
}

override func loadView() {
view = createMeetingView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ class FinishCreateViewController: BaseViewController {
}


// MARK: - LifeCycle

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)

navigationController?.isNavigationBarHidden = false
}

override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)

navigationController?.isNavigationBarHidden = true
}

// MARK: - Setup

override func setupView() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ class InviteCodeViewController: BaseViewController {


// MARK: - LifeCycle

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)

navigationController?.isNavigationBarHidden = false
}

override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)

navigationController?.isNavigationBarHidden = true
}

override func loadView() {
view = inviteCodeView
Expand Down Expand Up @@ -107,7 +119,7 @@ extension InviteCodeViewController {
// TODO: 서버 연결할 때 데이터 바인딩해서 화면 전환 시키기
let basePromiseViewController = PagePromiseViewController()

navigationController?.pushViewController(basePromiseViewController, animated: true)
tabBarController?.navigationController?.pushViewController(basePromiseViewController, animated: true)
}

@objc private func textFieldDidChange(_ textField: UITextField) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ class MeetingListViewController: BaseViewController {
viewModel.requestMeetingList()
}

override func setupAction() {
rootView.addButton.addTarget(self, action: #selector(addButtonDidTap), for: .touchUpInside)
}


// MARK: - Function

Expand Down Expand Up @@ -77,6 +81,20 @@ class MeetingListViewController: BaseViewController {
}


// MARK: - Extension

extension MeetingListViewController {
@objc
func addButtonDidTap() {
let checkInviteCodeViewController = CheckInviteCodeViewController()

tabBarController?.navigationController?.pushViewController(
checkInviteCodeViewController,
animated: true
)
}
}

// MARK: - UITableViewDelegate

extension MeetingListViewController: UITableViewDelegate {
Expand Down

0 comments on commit 938735c

Please sign in to comment.