UIVisualEffectView subclass with tint color. Applies a blurring effect to the content layered behind using UIBlurEffect .
$ pod try VisualEffectView
To install with CocoaPods , simply add this in your Podfile
:
use_frameworks! pod "VisualEffectView"
To install withCarthage, simply add this in your Cartfile
:
github "efremidze/VisualEffectView"
VisualEffectView.swift
in your project. Create a VisualEffectView using the empty initializer.
import VisualEffectView let visualEffectView = VisualEffectView() addSubview(visualEffectView)
var colorTint: UIColor // tint color var colorTintAlpha: CGFloat // tint color alpha var blurRadius: CGFloat // blur radius var scale: CGFloat // scale factor
Contributions are totally welcome.
VisualEffectView is available under the MIT license. See the LICENSE file for more info.
VisualEffectView utilizes a private UIKit API to do its magic. Use caution, submitting this code to the App Store adds the risk of being rejected!
https://github.com/collinhundley/APCustomBlurView