Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
jalynneyoon committed Apr 9, 2024
2 parents 7136a16 + c934cf1 commit bdacc25
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 @@ -113,7 +113,7 @@ public final class DealiTextInput: UIView {
self.inputStackView.addArrangedSubview(self.deleteButton)
self.inputStackView.setCustomSpacing(-2.0, after: self.textField)
self.deleteButton.then {
$0.setImage(UIImage.dealiIcon(named: "ic_x"), for: .normal)
$0.setImage(UIImage.dealiIcon(named: "ic_x")?.resize(CGSize(width: 16.0, height: 16.0)), for: .normal)
$0.isHidden = true
}.snp.makeConstraints {
$0.size.equalTo(CGSize(width: 44.0, height: 44.0))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@ public extension UIImage {

return image
}

func resize(_ size: CGSize) -> UIImage {
return UIGraphicsImageRenderer(size: size).image { _ in
draw(in: CGRect(origin: .zero, size: size))
}
}
}

0 comments on commit bdacc25

Please sign in to comment.