Skip to content

Commit

Permalink
RINGO-59 Design: 비밀번호 오류 ui 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyukjin committed Jan 31, 2024
1 parent 14cbb74 commit ebdcb05
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
filePath = "Ringo/ViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "33"
endingLineNumber = "33"
startingLineNumber = "34"
endingLineNumber = "34"
landmarkName = "viewDidLoad()"
landmarkType = "7">
</BreakpointContent>
Expand Down
18 changes: 16 additions & 2 deletions iOS/Ringo/Ringo/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class ViewController: UIViewController {
let google = UIButton()
let apple = UIButton()
let facebook = UIButton()
let error = UIButton()

override func viewDidLoad() {
super.viewDidLoad()
Expand All @@ -50,6 +51,7 @@ class ViewController: UIViewController {
view.addSubview(google)
view.addSubview(apple)
view.addSubview(facebook)
view.addSubview(error)
}

func setUpValue() {
Expand Down Expand Up @@ -105,6 +107,13 @@ class ViewController: UIViewController {
input_passwd.isSecureTextEntry = true
input_passwd.rightView = showBtn
input_passwd.rightViewMode = .always

// error.layer.isHidden = true
error.setTitle(" Incorrect password. Please check your password.", for: .normal)
error.setTitleColor(.red, for: .normal)
error.titleLabel?.font = .systemFont(ofSize: 13)
error.setImage(UIImage(systemName: "info.circle"), for: .normal)
error.tintColor = .red

forgotPwBtn.setTitle("Forgot Password?", for: .normal)
forgotPwBtn.setTitleColor(.systemBlue, for: .normal)
Expand Down Expand Up @@ -172,13 +181,18 @@ class ViewController: UIViewController {
make.trailing.equalToSuperview().offset(-20)
}

forgotPwBtn.snp.makeConstraints { make in
error.snp.makeConstraints { make in
make.top.equalTo(input_passwd.snp.bottom).offset(10)
make.leading.equalTo(input_passwd.snp.leading)
}

forgotPwBtn.snp.makeConstraints { make in
make.top.equalTo(error.snp.bottom).offset(10)
make.trailing.equalTo(input_passwd.snp.trailing)
}

signinBtn.snp.makeConstraints { make in
make.top.equalTo(forgotPwBtn.snp.bottom).offset(35)
make.top.equalTo(input_passwd.snp.bottom).offset(90)
make.leading.equalTo(input_passwd.snp.leading)
make.trailing.equalTo(input_passwd.snp.trailing)
}
Expand Down

0 comments on commit ebdcb05

Please sign in to comment.