Explorar o código

fix UIImage scale extension

cyberta %!s(int64=5) %!d(string=hai) anos
pai
achega
78dcec3af1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      deltachat-ios/Extensions/UIImage+Extension.swift

+ 1 - 1
deltachat-ios/Extensions/UIImage+Extension.swift

@@ -64,7 +64,7 @@ extension UIImage {
 
     func scaleDownImage(toMax: CGFloat) -> UIImage? {
         let rect = getResizedRectangle(toMax: Float(toMax))
-        UIGraphicsBeginImageContextWithOptions(rect.size, false, 1.0)
+        UIGraphicsBeginImageContextWithOptions(rect.size, false, 0.0)
         draw(in: rect)
         let newImage = UIGraphicsGetImageFromCurrentImageContext()
         UIGraphicsEndImageContext()