marinofaggiana 5 年之前
父节点
当前提交
c66a497ddf
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      iOSClient/Utility/NCCustomizableAlertController.swift

+ 2 - 2
iOSClient/Utility/NCCustomizableAlertController.swift

@@ -311,8 +311,8 @@ private extension UIAlertAction {
 		get {
 			return self.value(forKey: "image") as? UIImage
 		} set {
-//			let imageWithGoodDimensions = newValue?.scale(to: CGSize(width: 30, height: 30))
-//			self.setValue(imageWithGoodDimensions?.withRenderingMode(.alwaysOriginal), forKey: "image")
+            let imageWithGoodDimensions = NCUtility.sharedInstance.resizeImage(image: newValue!, newWidth: 30)
+            self.setValue(imageWithGoodDimensions.withRenderingMode(.alwaysOriginal), forKey: "image")
 		}
 	}