Is anyone else having headaches with dictionary coding as of Swift 5.5 (SR‐15289)?
The workaround I am currently employing is to manually implement encode(to:) for any type with a dictionary member, check if the dictionary is empty and if so, encode an empty array instead of the property itself. But it is a fragile solution, because some properties are rarely empty and so go a long time before being noticed.
What I want to know is if anyone has found better workaround to use instead—especially one that is more centralized?
(Also the fact that I have not seen anyone else mention it either on the forums or bug reports tempts me to wonder if I have just gone insane and am imagining the whole thing. It seems like it ought to be causing widespread breakage for everyone.)