I write this code in xcode8 but i have Error :
if let window = UIApplication.sharedApplication.keywindow{
let blackView = UIView()
blackView.backgroundColor = UIColor.black
window.addSubview(blackView)
blackView.frame = view.frame
}
but i have error that UIApplication has no member keywindow
what should i do !?