Skip to content

Instantly share code, notes, and snippets.

@denyskoch
Last active May 2, 2016 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denyskoch/1f7174f16227bc46e0b95d0571b8d519 to your computer and use it in GitHub Desktop.
Save denyskoch/1f7174f16227bc46e0b95d0571b8d519 to your computer and use it in GitHub Desktop.
UIBlurEffect for underlaying view. NEED: presentation: Over Current Context
override func viewDidLoad() {
super.viewDidLoad()
let visuaEffectView = UIVisualEffectView(effect: UIBlurEffect(style: .Light))
visuaEffectView.frame = view.bounds
view.backgroundColor = UIColor.clearColor()
view.opaque = false
view.insertSubview(visuaEffectView, atIndex: 0)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment