Skip to content

Commit

Permalink
πŸ“ Clore: #2 - ν•„μš”μ—†λŠ” μ•…μ„Έμ„œλ¦¬λŠ” κ·Έλƒ₯ μ§€μš°μž
Browse files Browse the repository at this point in the history
  • Loading branch information
usa4060 committed Nov 5, 2023
1 parent 2442221 commit 671214e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions DesignSystem/Sources/CMCTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ public final class CMCTextField: UIView{

accessoryCMCButton.snp.makeConstraints {
$0.height.equalTo(34)
$0.width.equalTo(76)
$0.trailing.equalToSuperview().offset(-18)
$0.centerY.equalToSuperview()
}
Expand Down Expand Up @@ -214,12 +215,12 @@ public final class CMCTextField: UIView{

switch accessoryType {
case .button:
accessoryButton.isHidden = colorSet.accessoryHidden
accessoryButton.removeFromSuperview()
case .image:
accessoryCMCButton.isHidden = colorSet.accessoryHidden
accessoryCMCButton.removeFromSuperview()
case .none:
accessoryButton.isHidden = true
accessoryCMCButton.isHidden = true
accessoryButton.removeFromSuperview()
accessoryCMCButton.removeFromSuperview()
}
}

Expand Down Expand Up @@ -353,6 +354,7 @@ extension CMCTextField: UITextFieldDelegate {
}
return true
}

}


Expand Down

0 comments on commit 671214e

Please sign in to comment.