Is there any way to opt out of dark mode for widget in iOS 13?

https://stackoverflow.com/questions/60826140/is-there-any-way-to-opt-out-of-dark-mode-for-widget-in-ios-13


The application that I'm working on right now doesnt support dark mode yet. I was able to opt out of dark mode in the application by adding a key in the plist. But, The widget still becomes dark when I turn on Dark Mode in iOS 13. Is there any way to opt out of Dark Mode for widget too.


override func viewDidLoad() {
  super.viewDidLoad()
overrideUserInterfaceStyle = .light
}


I tried this code. But, only the font color reverts back to what it has to be in light mode. The blurred background of the widget is still black. Is there any way to change that too. Thaks in advance