swiftios10today-extensionios-extensionsios10-today-widget

Change Widget UIVisualEffectView blur style to dark


I'm working on updating one of my widgets for iOS 10 and in the process its UIVisualEffectView style automatically changed to light. My other widgets that I have not started updating for iOS 10 yet have a dark UIVisualEffectView style.

How can I access the UIVisualEffectView style for my widget?

example of problem


Solution

  • In iOS 10, you are not supposed to use any visual effect. Just give your widget's main view the default background. It will automatically adopt the light blur. And that is the way it is supposed to look.