Having KodableTransformable as a class may result in unexpected behaviors, such as the one in the screenshot below:
Properties wrapped in Coding are always reference typed, which causes extra memory management work when dealing with structs. Ideally, KodableTransformable should be a struct.
Having
KodableTransformable
as a class may result in unexpected behaviors, such as the one in the screenshot below:Properties wrapped in
Coding
are always reference typed, which causes extra memory management work when dealing with structs. Ideally,KodableTransformable
should be a struct.