Created
October 5, 2014 14:58
-
-
Save y-ogi/0737f96a69acdf55eaa4 to your computer and use it in GitHub Desktop.
how to add blur effect to view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func applyBlur(view: UIView) { | |
var visualEffectView = UIVisualEffectView(effect: UIBlurEffect(style: .Light)) as UIVisualEffectView | |
visualEffectView.frame = view.bounds | |
view.addSubview(visualEffectView) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment