[icons]: Fix: original icon is too small in "Change App Icon" screen

This commit is contained in:
Magesh K
2024-12-17 12:22:53 +05:30
parent 1b85f6532b
commit 1203c9f5f2

View File

@@ -149,10 +149,10 @@ private extension AltAppIconsViewController
// we have to do this hardcodded name hack for .appiconset
// else one can supply the artifacts via .imageset
let image: UIImage? =
UIImage(named: icon.imageName) ??
UIImage(named: "\(icon.imageName)76x76@2x~ipad") ??
UIImage(named: "\(icon.imageName)60x60@2x")
UIImage(named: "\(icon.imageName)60x60@2x") ??
UIImage(named: icon.imageName)
config.image = image
config.imageProperties.maximumSize = CGSize(width: imageWidth, height: imageWidth)
config.imageProperties.cornerRadius = imageWidth / 5.0 // Copied from AppIconImageView