Browse Source

lint warning

nayooti 5 years ago
parent
commit
f3930024a7
1 changed files with 9 additions and 1 deletions
  1. 9 1
      deltachat-ios/Extensions/UIImage+Extension.swift

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

@@ -21,7 +21,15 @@ extension UIImage {
 
          let colorSpace = CGColorSpaceCreateDeviceRGB()
          let bitmapInfo = CGBitmapInfo(rawValue: CGImageAlphaInfo.premultipliedLast.rawValue)
-         let context = CGContext(data: nil, width: Int(width), height: Int(height), bitsPerComponent: 8, bytesPerRow: 0, space: colorSpace, bitmapInfo: bitmapInfo.rawValue)!
+         let context = CGContext(
+            data: nil,
+            width: Int(width),
+            height: Int(height),
+            bitsPerComponent: 8,
+            bytesPerRow: 0,
+            space: colorSpace,
+            bitmapInfo: bitmapInfo.rawValue
+        )!
 
          context.clip(to: bounds, mask: maskImage)
          context.setFillColor(color.cgColor)