Skip to content

Commit

Permalink
✨[FEAT] 도전과제2 비밀번호 표시 기능 구현(#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
heerucan committed Oct 7, 2021
1 parent 8df74cf commit 0c90bb5
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@ class SignUpVC: UIViewController {
}

@objc func touchUpShowPWButton(_ sender: UIButton) {

sender.isSelected = !sender.isSelected
if sender.isSelected {
pwTextField.isSecureTextEntry = false
} else {
pwTextField.isSecureTextEntry = true
}
}
}

0 comments on commit 0c90bb5

Please sign in to comment.