Browse Source

Fix processor concat warning

onevcat 6 years ago
parent
commit
0de93ac8a6

+ 1 - 1
Demo/Demo/Kingfisher-Demo/ViewControllers/ProcessorCollectionViewController.swift

@@ -49,7 +49,7 @@ class ProcessorCollectionViewController: UICollectionViewController {
         (BlackWhiteProcessor(), "B&W"),
         (BlackWhiteProcessor(), "B&W"),
         (CroppingImageProcessor(size: CGSize(width: 100, height: 100)), "Cropping"),
         (CroppingImageProcessor(size: CGSize(width: 100, height: 100)), "Cropping"),
         (DownsamplingImageProcessor(size: CGSize(width: 25, height: 25)), "Downsampling"),
         (DownsamplingImageProcessor(size: CGSize(width: 25, height: 25)), "Downsampling"),
-        (BlurImageProcessor(blurRadius: 5) >> RoundCornerImageProcessor(cornerRadius: 20), "Blur + Round Corner")
+        (BlurImageProcessor(blurRadius: 5) |> RoundCornerImageProcessor(cornerRadius: 20), "Blur + Round Corner")
     ]
     ]
     
     
     override func viewDidLoad() {
     override func viewDidLoad() {

+ 1 - 1
Sources/Image/ImageProcessor.swift

@@ -324,7 +324,7 @@ public struct CompositingImageProcessor: ImageProcessor {
                             alpha: alpha,
                             alpha: alpha,
                             backgroundColor: backgroundColor)
                             backgroundColor: backgroundColor)
         case .data:
         case .data:
-            return (DefaultImageProcessor.default >> self).process(item: item, options: options)
+            return (DefaultImageProcessor.default |> self).process(item: item, options: options)
         }
         }
     }
     }
 }
 }