diff --git a/.DS_Store b/.DS_Store index dc784c0..2d86b50 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/Example/Athlee-ImageEditorKit/Athlee-ImageEditorKit/FilterViewController.swift b/Example/Athlee-ImageEditorKit/Athlee-ImageEditorKit/FilterViewController.swift index f3efb71..71c6f99 100644 --- a/Example/Athlee-ImageEditorKit/Athlee-ImageEditorKit/FilterViewController.swift +++ b/Example/Athlee-ImageEditorKit/Athlee-ImageEditorKit/FilterViewController.swift @@ -102,7 +102,7 @@ extension FilterViewController: UICollectionViewDataSource, UICollectionViewDele } } - func prepareImage(at indexPath: IndexPath, completion: (UIImage?) -> Void) { + func prepareImage(at indexPath: IndexPath, completion: @escaping (UIImage?) -> Void) { switch indexPath.item { case 0: names[indexPath] = "None" diff --git a/Source/ImageProcessor/Processor/ImageProcessor.swift b/Source/ImageProcessor/Processor/ImageProcessor.swift index 75f4e47..fb23afe 100644 --- a/Source/ImageProcessor/Processor/ImageProcessor.swift +++ b/Source/ImageProcessor/Processor/ImageProcessor.swift @@ -35,7 +35,7 @@ public struct ImageProcessor: ImageProcessorType { // MARK: ImageProcessorType properties - public func process(image: UIImage, filter: T, completion: (UIImage?) -> Void) { + public func process(image: UIImage, filter: T, completion: @escaping (UIImage?) -> Void) { print("[ImageProcessor]: Unable to find appropriate processing method's overload...") } @@ -237,10 +237,6 @@ public struct ImageProcessor: ImageProcessorType { fileprivate func setValues(for filter: CIFilter, with _filter: T) { let scanned = _filter.scanned() for (key, value) in scanned { - guard let value = value as? AnyObject else { - continue - } - filter.setValue(value, forKey: key) } } diff --git a/Source/ImageProcessor/Processor/ImageProcessorType.swift b/Source/ImageProcessor/Processor/ImageProcessorType.swift index 3a882a5..3b6a1d7 100644 --- a/Source/ImageProcessor/Processor/ImageProcessorType.swift +++ b/Source/ImageProcessor/Processor/ImageProcessorType.swift @@ -9,5 +9,5 @@ import UIKit public protocol ImageProcessorType { - func process(image: UIImage, filter: T, completion: (UIImage?) -> Void) + func process(image: UIImage, filter: T, completion: @escaping (UIImage?) -> Void) }