Skip to content

Commit

Permalink
✨[FEAT] : #139 전체 선택 버튼 기능 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
comeheredart committed Nov 23, 2021
1 parent 19434b7 commit 160d77f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,8 @@ struct IsDuplicatedNicknameService {
return .pathErr
}

print("일단 여기까지 왔음")
switch statusCode {
case 200:
print("--- 데이터 받기 성공")
return .success(decodedData.success)
case 400: return .requestErr(decodedData.msg)
case 500: return .serverErr
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ class JoinContractView: UIView {
var agreePushLabel = JoinTitleLabel(type: .normalTitle, title: "(선택) 마케팅 푸시 수신 동의")
var agreeEmailLabel = JoinTitleLabel(type: .normalTitle, title: "(선택) 마케팅 이메일 수신 동의")

var agreeAllButton = JoinAgreeButton(isBig: true)
var agreeAllButton = JoinAgreeButton(isBig: true).then {
$0.addTarget(self, action: #selector(allButtonClicked), for: .touchUpInside)
}

var agreePushButton = JoinAgreeButton(isBig: false)
var agreeEmailButton = JoinAgreeButton(isBig: false)

Expand Down Expand Up @@ -60,6 +63,10 @@ class JoinContractView: UIView {
nextButton.isEnabled = false
}

@objc func allButtonClicked() {
agreePushButton.buttonClicked()
agreeEmailButton.buttonClicked()
}

//MARK: - configure 함수
private func configureUI() {
Expand Down

0 comments on commit 160d77f

Please sign in to comment.