Blur
Extension to UIView to apply blur/vibrant effect. Written in Swift.
Install / Use
/learn @romansorochak/BlurREADME
Blur
- Simple approach to apply blur effect to UIView or it's sublasses.
| Demo |
|---------------------------------|
|
|
| Light | Extra Light | Dark |
|---------------------------------|---------------------------------|---------------------------------|
|
|
|
|
- Tap here to see case using Blur with parallax header view - https://github.com/romansorochak/ParallaxHeader
Contents
Requirements
- iOS 8.0+
- Swift 3.0+
Installation
All logic is in UIView+Blur.swift file. Just copy this file to your project.
Usage
You can call blurView property on any UIView or it's subclass.
imageView.blurView.setup(style: UIBlurEffectStyle.light, alpha: 0.9).enable()
Author
Roman Sorochak - iOS developer - roman.sorochak@gmail.com
License
Blur is released under the MIT license. See LICENSE for details.
