Created
November 9, 2018 08:23
-
-
Save madcato/6c95cca423bd2c0cff6ba6ba544a93dc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// 1 | |
view.backgroundColor = .clear | |
// 2 | |
let blurEffect = UIBlurEffect(style: .light) | |
// 3 | |
let blurView = UIVisualEffectView(effect: blurEffect) | |
// 4 | |
blurView.translatesAutoresizingMaskIntoConstraints = false | |
view.insertSubview(blurView, at: 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment