Objective-C
[SmartEffectPicker startEffect: self
title: @"Effect"
sourceImage: pickedImage
completed: ^(UIImage *effectedImage) {
if (effectedImage != nil) {
self.imageView.image = effectedImage;
}
}];
Swift
SmartEffectPicker.startEffect(self,
title: "Effect",
sourceImage: pickedImage) { (effectedImage) in
if let image = effectedImage {
self.imageView.image = image
}
}
SmartEffectPicker is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SmartEffectPicker'
ShockUtility, [email protected]
SmartEffectPicker is available under the MIT license. See the LICENSE file for more info.