Blur
Blur copied to clipboard
Extension to UIView to apply blur/vibrant effect. Written in Swift.
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
- Installation
- Usage
- License
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 - [email protected]
License
Blur is released under the MIT license. See LICENSE for details.