Your First iOS & SwiftUI App: Polishing the App, Episode 21: Environment Property Wrapper |

Learn how you can use the environment property wrapper to detect if the app is in light mode or dark mode.

This is a companion discussion topic for the original entry at

After supporting dark mode with the environment variable, Ray forgets to add the multiplier of 0.8 to the opacity start color. So it goes from 0.3 * 0.8 to just 0.3 in light mode.