Skip to content

Commit

Permalink
fix: resolve error
Browse files Browse the repository at this point in the history
about registerviewcontroller to homeviewcontroller
  • Loading branch information
yuncheol-AHN committed Nov 15, 2024
1 parent 20894b9 commit 088a81a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public final class RegisterViewController: UIViewController {

// MARK: - Property
var registerView = MHRegisterView()
var username = ""

// MARK: - Lifecycle
public override func viewDidLoad() {
Expand All @@ -20,9 +21,14 @@ public final class RegisterViewController: UIViewController {
private func setup() {
view.backgroundColor = .baseBackground

MHRegisterView.textfieldSubject.sink { text in
self.username = text
}.store(in: &subscriptions)

MHRegisterView.buttonSubject.sink { isValid in
if isValid {
self.navigationController?.pushViewController(HomeViewController(), animated: false)
let homeViewController = HomeViewController(viewModel: HomeViewModel(houseName: self.username))
self.navigationController?.pushViewController(homeViewController, animated: false)
self.navigationController?.viewControllers.removeFirst() // inactive back to register view
} else {
// TODO: - 기록소 이름 조건이 안맞는 부분 처리

Check warning on line 34 in MemorialHouse/MHPresentation/MHPresentation/Source/Register/RegisterViewController.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Todo Violation: TODOs should be resolved (- 기록소 이름 조건이 안맞는 부분 처리) (todo)

Check warning on line 34 in MemorialHouse/MHPresentation/MHPresentation/Source/Register/RegisterViewController.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Todo Violation: TODOs should be resolved (- 기록소 이름 조건이 안맞는 부분 처리) (todo)
Expand Down

0 comments on commit 088a81a

Please sign in to comment.