Solved: kind of.
We have a custom property wrapper that implements DynamicProperty to enable remote feature flagging directly in SwiftUI views. We were using this to remotely enable dark mode.
Even though the feature flag was turned on, something about the way this dynamic property wrapper works was causing the view to not set the correct mode on first launch, even when the value changes. We've not had any problems with this property wrapper in other views.
Rather than waste more time trying to figure it out, we decided to simply remove the feature flag around dark mode and ship it directly.
Topic:
UI Frameworks
SubTopic:
General
Tags: