Skip to content

Instantly share code, notes, and snippets.

@y-ogi
Created October 5, 2014 14:58
Show Gist options
  • Save y-ogi/0737f96a69acdf55eaa4 to your computer and use it in GitHub Desktop.
Save y-ogi/0737f96a69acdf55eaa4 to your computer and use it in GitHub Desktop.
how to add blur effect to view
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