Detecting dark mode in SwiftUI
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...
Apr 9, 20211 min read83