I have in my project different code which is responsible for the blur effect in my app. In tvOS 13 this worked fine but in tvOS 14 I have to remove the code otherwise the app will crash. What exactly do I have to change in the code to make it run on tvOS 14. Thanks for the help.
Code Block private func sharedSetup(effect: UIBlurEffect, radius: CGFloat = 90) { let UICustomBlurEffect = NSClassFromString("_UICustomBlurEffect") as! UIBlurEffect.Type let raw = effect.value(forKey: "_style") as! Int let style = UIBlurEffect.Style(rawValue: raw)! let effect = UICustomBlurEffect.init(style: style) effect.setValue(1.0, forKey: "scale") effect.setValue(radius, forKey: "blurRadius") effect.setValue(UIColor.clear, forKey: "colorTint") self.blurEffect = effect }