I'm trying to add a view in my app settings page where the users can choose to force dark mode, light mode or keep the system behavior.
If I add .environment(\.colorScheme) to the ContentView it works fine in case I force one of the two themes, but since the available options are only .light or .dark how do I get back to .automatic?
I also tried using a conditional modifier for the color scheme, which works, but the problem is that it ends up reloading the all app and it causes the app to jump form settings to the home screen.
If I add .environment(\.colorScheme) to the ContentView it works fine in case I force one of the two themes, but since the available options are only .light or .dark how do I get back to .automatic?
I also tried using a conditional modifier for the color scheme, which works, but the problem is that it ends up reloading the all app and it causes the app to jump form settings to the home screen.