Latest 1.2
Homepage https://github.com/levigroker/GRKBlurView
License Creative Commons Attribution 3.0 Unported License
Platforms ios 7.0, requires ARC
Frameworks Accelerate
Authors

A UIView subclass which applies image effects to a given image.

Image affects (blur, saturation) are applied to a base image asynchronously and is
intended to be used for near real time application.

Demo
(please note the image quality is much better than the above gif, as can be seen below)

Sample Screenshot

Future Ideas

  • Make changes to properties animatable (using Core Animation).

Installing

If you’re using CocoPods it’s as simple as adding this to your Podfile:

pod 'GRKBlurView'

Documentation

Use as you would any other UIView, and simply configure appropriate to your needs.
In the simplest case, all you need supply is the base targetImage and a blurRadius as
seen below, however, because of asynchronous updates interaction with the effects is
possible and performant.

@property (nonatomic,weak) IBOutlet GRKBlurView *blurView;

- (void)viewDidLoad
{
    [super viewDidLoad];

    self.blurView.targetImage = [UIImage imageNamed:@"test"];
    self.blurView.blurRadius = 30.0f;
}

There is a convenience method to capture a view hierarchy as an image and use that as the
target image:

- (void)setTargetImageFromView:(UIView *)targetView;

Also please refer to the included GRKBlurViewTestApp for more robust examples.

Additional documentation is available in GRKBlurView.h.

Disclaimer and Licence

About

A professional iOS engineer by day, my name is Levi Brown. Authoring a technical blog
grokin.gs, I am reachable via:

Twitter @levigroker
App.net @levigroker
Email [email protected]

Your constructive comments and feedback are always welcome.

Latest podspec

{
    "name": "GRKBlurView",
    "version": "1.2",
    "summary": "A UIView subclass which applies image effects to a given image.",
    "description": "ttImage affects (blur, saturation) are applied to a base image asynchronously andnttis intended to be used for near real time application.n",
    "homepage": "https://github.com/levigroker/GRKBlurView",
    "license": "Creative Commons Attribution 3.0 Unported License",
    "authors": {
        "Levi Brown": "[email protected]"
    },
    "social_media_url": "https://twitter.com/levigroker",
    "source": {
        "git": "https://github.com/levigroker/GRKBlurView.git",
        "tag": "1.2"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "GRKBlurView/**/*.{h,m}",
    "frameworks": "Accelerate",
    "requires_arc": true
}

Pin It on Pinterest

Share This