Skip to content

Commit

Permalink
feat: 화면 전환 연결 및 예외처리
Browse files Browse the repository at this point in the history
  • Loading branch information
woongaaaa committed Jan 11, 2025
1 parent 1d95902 commit 76383b1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,22 @@ final class MatchingApplyFirstIntroductionView: UIView {
}

private func setButtonAction() {
nextButton.setButtonState(isEnabled: true)
nextButton.addTarget(self, action: #selector(nextButtonTapped), for: .touchUpInside)
}

@objc private func nextButtonTapped() {
if textView.text.count >= 20 {
delegate?.didTapNextButton(textView.text)
}else {
if let vc = self.getViewController() {
CustomAlertViewController.CustomAlertBuilder(viewController: vc)
.setButtonState(.singleButton)
.setTitleState(.useTitleOnly)
.setSingleButtonTitle("돌아가기")
.setTitleText("20자 이상 입력해주세요")
.showAlertView()
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ final class MatchingApplyPetExperienceViewController: UIViewController {

extension MatchingApplyPetExperienceViewController: MatchingApplyPetExperienceViewDelegate {
func didSelectExperience(_ experienceYn: String) {
print(experienceYn)
let nextVC = MatchingApplyPetWalkExperienceViewController()
navigationController?.pushViewController(nextVC, animated: true)
}
}

0 comments on commit 76383b1

Please sign in to comment.