瀏覽代碼

lint warning

nayooti 5 年之前
父節點
當前提交
f3930024a7
共有 1 個文件被更改,包括 9 次插入1 次删除
  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)