Skip to content

Commit

Permalink
버튼 이미지 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ena-isme committed Jul 30, 2023
1 parent d56d902 commit 4b79ea5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 2ndWeek/Assignment/Assignment/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,17 @@ class ViewController: UIViewController, UIViewControllerTransitioningDelegate {
clearButton.then {
$0.setImage(UIImage(named: "clearBtn"), for: .normal)
$0.isHidden = true
$0.contentVerticalAlignment = .fill
$0.contentHorizontalAlignment = .fill

$0.addTarget(self, action: #selector(clearBtnTapped(sender:)), for: .touchUpInside)
}
eyeButton.then {
$0.setImage(UIImage(named: "noeyeBtn"), for: .normal)
$0.setImage(UIImage(named: "eyeBtn"), for: .selected)
$0.isHidden = true
$0.contentVerticalAlignment = .fill
$0.contentHorizontalAlignment = .fill

$0.addTarget(self, action: #selector(eyeBtnTapped), for: .touchUpInside)
}
Expand Down

0 comments on commit 4b79ea5

Please sign in to comment.