
Engineering
How I Fixed SwiftUI Appearance Switching on macOS
The real fix for a stale SwiftUI macOS window combined an explicit color scheme, adaptive styles, and a safer NSVisualEffectView bridge in hora.
Maciej Szamowski7 min read
Articles tagged Preferredcolorscheme from the hora Calendar dev blog.

The real fix for a stale SwiftUI macOS window combined an explicit color scheme, adaptive styles, and a safer NSVisualEffectView bridge in hora.

A SwiftUI macOS window stayed in the old color scheme until focus changed. Here is the evidence, the failed fixes, and what my first tests missed.