Comment on passing nil to `perferredColorScheme` instead of light/dark Same here, in Xcode 16 and iOS 18.1 simulator. Once preferredColorScheme is set to ".light" or ".dark", changing it back to "nil" no longer has any effect. To fix this, you need to restart the app, which is quite unpredictable. UI Frameworks SwiftUI Oct ’24