Hi, I am trying to build a toggle in my app that allows users to override their device colorScheme (light or dark) by toggling the button. However, I want the device colorScheme to be the default toggle of my additional bool var 'isLightMode' (which can then be toggled by the user to change colorScheme). So something like:
@Environemnt(.colorScheme) var colorScheme @State var isLightMode: colorScheme == .light ? true : false
...
Obviously I know the above doesn't work, but that's the idea.
Any help is much appreciated :D.