Skip to content

Commit

Permalink
[Fix] sopt-makers#12 - 패스워드 입력 부분 색상 변경 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
lsj8706 committed Nov 28, 2022
1 parent 22991bb commit 13624e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ extension CustomTextFieldView {

/// textField의 state를 지정하여 자동으로 배경색과 테두리 색이 바뀌도록 설정
public func setTextFieldViewState(_ state: TextFieldViewState) {
var state = state
if state == .normal && textField.text?.count != 0 {
state = .editing
}

textFieldContainerView.backgroundColor = state.backgroundColor

if let borderColor = state.borderColor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ extension SignUpVC {
self.passwordTextFieldView.setTextFieldViewState(.alert) :
self.passwordCheckTextFieldView.setTextFieldViewState(.alert)
} else {
self.passwordCheckTextFieldView.setTextFieldViewState(.editing)
self.passwordTextFieldView.setTextFieldViewState(.normal)
self.passwordCheckTextFieldView.setTextFieldViewState(.normal)
}
}.store(in: cancelBag)

Expand Down

0 comments on commit 13624e3

Please sign in to comment.