Extension to UIView to apply blur/vibrant effect. Written in Swift.

65
12
Swift

Blur

  • Simple approach to apply blur effect to UIView or it’s sublasses.
Demo
Demo
Light Extra Light Dark
Demo Demo Demo

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 - [email protected]

License

Blur is released under the MIT license. See LICENSE for details.