How do you implement the “follow system” behavior for color scheme (dark mode) in SwiftUI? In UIKit you just set the overrideUserInterfaceStyle
to .unspecified
, however, in SwiftUI setting preferredColorScheme
to nil
won’t work until you relaunch the app.