Skip to content

Commit 518f79d

Browse files
committed
Remove all resized instances of info icon
1 parent 5215b1c commit 518f79d

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

ios/MullvadVPN/Extensions/UIImage+Assets.swift

-6
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ extension UIImage {
2222
}
2323

2424
static var info: UIImage {
25-
// the info icon was 18x18 cropped
26-
UIImage(named: "IconInfo")!
27-
.resized(to: CGSize(width: 18, height: 18), trimmingBorder: 2)
28-
}
29-
30-
static var infoLarge: UIImage {
3125
UIImage(named: "IconInfo")!
3226
}
3327

ios/MullvadVPN/View controllers/Alert/AlertViewController.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ enum AlertIcon {
3535
case .warning:
3636
return UIImage.Buttons.alert.withTintColor(.white)
3737
case .info:
38-
return UIImage.Buttons.infoLarge.withTintColor(.white)
38+
return UIImage.Buttons.info.withTintColor(.white)
3939
default:
4040
return nil
4141
}
@@ -284,7 +284,7 @@ class AlertViewController: UIViewController {
284284
imageContainerView.addConstrainedSubviews([imageView]) {
285285
imageView.pinEdges(.init([.top(0), .bottom(0)]), to: imageContainerView)
286286
imageView.centerXAnchor.constraint(equalTo: imageContainerView.centerXAnchor, constant: 0)
287-
imageView.heightAnchor.constraint(equalToConstant: 52)
287+
imageView.heightAnchor.constraint(equalToConstant: 48)
288288
imageView.widthAnchor.constraint(equalTo: imageView.heightAnchor, multiplier: 1)
289289
}
290290

0 commit comments

Comments
 (0)