I have an app with a hamburger-menu in the top-left corner. When pressed, the menu fades in over the current ViewController at 90% opacity, presenting the app's main navigation options.
I am presenting the viewController from a page using the code below:
@IBAction func navToMenu(sender: AnyObject) {
let vc = self.storyboard!.instantiateViewControllerWithIdentifier("mainMenu")
vc.view.backgroundColor = UIColor(red: 240/255, green: 112/255, blue: 49/255, alpha: 0.9)
vc.modalPresentationStyle = UIModalPresentationStyle.OverFullScreen
vc.modalTransitionStyle = UIModalTransitionStyle.CrossDissolve
self.presentViewController(vc, animated: true, completion: nil)
}
How can I blur the viewController behind the menu when the it fades in?