Created
January 5, 2016 14:08
-
-
Save Kievkao/5ecf62bd39ede3d4f010 to your computer and use it in GitHub Desktop.
Blurred tableView background
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
| func backgroundBlurSetup() { | |
| // for clear background also need to set a modal segue to this controller into "OverCurrentContext" | |
| self.view.backgroundColor = UIColor.clearColor() | |
| let blurEffect = UIBlurEffect(style: .Light) | |
| let effectView = UIVisualEffectView(effect: blurEffect) | |
| effectView.frame = self.view.frame | |
| self.tableView.backgroundView = effectView | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment