colorScheme value always dark after setting dark mode in display and brightness even if Home Screen customization is light

If you set the display and brightness settings in iOS to be in dark mode, then the value returned in the colorScheme environment value:

https://developer.apple.com/documentation/swiftui/environmentvalues/colorscheme

@Environment(.colorScheme) var colorScheme

is always dark, even if you toggle between light or dark in the Home Screen customization option. Tinted is reported correctly.

Is there some way to get the Home Screen customization light/dark/tinted value correctly? Swapping the Home Screen customization value between light/dark does swap between the light and dark app icon so it seems like the widget color scheme should also swap in this case.

@markdaws Are you referring to the App icon or the systemwide appearance?

The reason I ask this is because within the HomeScreen you can customize the appearance of app icons to light, dark, or tinted and toggle the systemwide appearance.

However systemwide appearance can only toggle on and off between light or dark appearance and @Environment(.colorScheme) var colorScheme would return the display value for the system wide appearance and not the App icons.

colorScheme value always dark after setting dark mode in display and brightness even if Home Screen customization is light
 
 
Q