Update cancel button asset for link previews.

This commit is contained in:
Matthew Chen 2019-01-23 16:37:26 -05:00
parent cad5ab387e
commit 1df8b92034
5 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "x-20@1x.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "x-20@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "x-20@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 499 B

View file

@ -618,7 +618,7 @@ public class LinkPreviewView: UIStackView {
cancelStack.setContentHuggingHigh()
cancelStack.setCompressionResistanceHigh()
let cancelImage: UIImage = #imageLiteral(resourceName: "quoted-message-cancel").withRenderingMode(.alwaysTemplate)
let cancelImage = UIImage(named: "compose-cancel")?.withRenderingMode(.alwaysTemplate)
let cancelButton = UIButton(type: .custom)
cancelButton.setImage(cancelImage, for: .normal)
cancelButton.addTarget(self, action: #selector(didTapCancel(sender:)), for: .touchUpInside)