SwiftUI: Does preferredColorScheme work on watch?

Has anybody managed to get .preferredColorScheme(.dark) working in a watch app in the watchOS 9 beta simulator? It works fine for me on iOS, but doesn't seem to have an effect on the watch.

I'm on the first Xcode 14 beta.

Post not yet marked as solved Up vote post of breville Down vote post of breville
785 views

Replies

Dark Mode isn't supported on watchOS.

That's a fair point, though it seems odd to still have that function available if it's not, especially if it no-ops silently.

I found a good solution though. I had been hoping to change the preferred color scheme because my asset catalog contains dark mode colors that would be best to use on the watch, given that it's usually using a dark background, but I discovered that I could add a watch-specific variant to each color in the asset catalog, and I set up the appropriate color scheme that way.