I have a private pod and within it is my asset catalog. There's a named color with "Any Appearance" and "Dark Appearance" values set. In my main project that's consuming the pod, I can set the color
It even looks correct in the storyboard when I switch the interface styles between dark and light. The issue is when I then run the code, it only uses the light appearance, even in dark mode. To make it more confusing, if I set the color via code, e.g., viewDidLoad it works as expected.
let bundle = Bundle(for: PrivatePodClass.self)
let color = UIColor(named: "tableViewSectionHeader", in: bundle, compatibleWith: nil)
// Works
view.backgroundColor = color
I'm not sure if this is an issue with XCode 11 or if it's something with cocoapods, but I'd like to not be forced to set the colors via code if I don't have to.