Last active
May 2, 2016 16:32
-
-
Save denyskoch/1f7174f16227bc46e0b95d0571b8d519 to your computer and use it in GitHub Desktop.
UIBlurEffect for underlaying view. NEED: presentation: Over Current Context
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
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