TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jul 2016 |
Maintained by luckytianyiyan.
An easy way to set up blur effect and play the animation.
Simple |
---|
UIImageView Play Blur Aniamtion | UIImage Blur Effects |
---|---|
Add the following to your Podfile.
pod 'TYBlurImage'
API documentation is available at CocoaDocs - TYBlurImage
Just #import
the UIImage+BlurEffects
header.
call the following method is rapid to blur.
#import <UIImage+BlurEffects.h>
...
UIImage *sourceImage = [UIImage imageNamed:@"testImage.png"];
// Light Effect
UIImage *image = [UIImage ty_imageByApplyingLightEffectToImage:sourceImage];
CGFloat blurRadius = 20.f;
CGFloat saturationDeltaFactor = 1.2f;
UIColor *tintColor = [UIColor colorWithWhite:0.4f alpha:0.3f];
UIImage *image = [UIImage ty_imageByApplyingBlurToImage:sourceImage withRadius:blurRadius tintColor:tintColor saturationDeltaFactor:saturationDeltaFactor maskImage:nil];
Just #import
the UIImageView+BlurAnimation
header.
UIImage *sourceImage = [UIImage imageNamed:@"testImage.png"];
UIImageView *imageView = [[UIImageView alloc] initWithImage:sourceImage];
imageView.blurTintColor = [UIColor colorWithWhite:0.4f alpha:0.3f];
imageView.blurRadius = 20;
[imageView ty_blurInAnimationWithDuration:3.0f];
With blocks, you can be notified about whenever the image animation has completed.
[imageView ty_blurInAnimationWithDuration:3.0f completion:^{
NSLog(@"complete");
}];
TYBlurImage
is available under the MIT license. See the LICENSE file for more info.