The view modifier .preferredColorScheme takes the optional ColorScheme?. I expected if you pass nil it would just use the system light/dark settings, but it's not working that way for me and I can't find any information in the docs or headers.
Does anyone know?
Does anyone know?
This has been resolved iOS 14.5 beta 2. You can view the release notes for more information on new features and resolved issues.
If you are not using the latest beta software or Xcode releases then you will have to wait for the final release of iOS 14.5 which should be available in a couple of weeks.Setting .preferredColorScheme(nil) now correctly resets to the system’s preferred color scheme. (67000774)