Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/TransitApp/SVBlurView

A simple reimplementation of FXBlurView for iOS 7
https://github.com/TransitApp/SVBlurView

Last synced: about 2 months ago
JSON representation

A simple reimplementation of FXBlurView for iOS 7

Awesome Lists containing this project

README

        

# SVBlurView

SVBlurView is a simple reimplementation of FXBlurView for iOS 7. It uses Apple's `UIImage+ImageEffects` category as well as the new `drawViewHierarchyInRect:` UIView API. It doesn't do dynamic blurs yet.

![SVBlurView](http://f.cl.ly/items/1q1D0k180z2Y0u2J3x2f/iOS%20Simulator%20Screen%20shot%2019%20Oct,%202013%205.34.21%20PM.png)

## Installation

### Manually

* Drag the `SVBlurView/SVBlurView` folder into your project.
* `#import "SVBlurView.h"`

## Usage

(see sample Xcode project in `/Demo`)

```objective-c
SVBlurView *blurView = [[SVBlurView alloc] initWithFrame:CGRectMake(60, 100, 200, 200)];
[backgroundView addSubview:blurView];
```

#### Customization

```objective-c
@property (nonatomic, readwrite) CGFloat blurRadius; // default is 20.0f
@property (nonatomic, readwrite) CGFloat saturationDelta; // default is 1.5
@property (nonatomic, readwrite) UIColor *tintColor; // default nil
```

## Credits

SVBlurView is brought to you by [Sam Vermette](http://samvermette.com) and [contributors to the project](https://github.com/samvermette/SVBlurView/contributors). If you have feature suggestions or bug reports, feel free to help out by sending pull requests or by [creating new issues](https://github.com/samvermette/SVBlurView/issues/new). If you're using SVBlurView in your project, attribution would be nice.