Detecting dark mode in SwiftUI
Apr 9, 2021 · 1 min read · SwiftUI lets us detect whether dark mode or light mode is currently enabled using the colorScheme environment key. If you declare this using @Environment, you can refer to it in your views and they will automatically be reloaded when the colour schem...
Join discussion