Extension to UIView to apply blur/vibrant effect. Written in Swift.
Demo |
---|
Light | Extra Light | Dark |
---|---|---|
All logic is in UIView+Blur.swift file.
Just copy this file to your project.
You can call blurView property on any UIView or it’s subclass.
imageView.blurView.setup(style: UIBlurEffectStyle.light, alpha: 0.9).enable()
Roman Sorochak - iOS developer - [email protected]
Blur is released under the MIT license. See LICENSE for details.