AnyCodable icon indicating copy to clipboard operation
AnyCodable copied to clipboard

Access to custom coding strategies in AnyEncodable?

Open tkrajacic opened this issue 7 years ago • 0 comments

According to Itai Ferber on the Swift forums the implementation used in AnyEncoder is incorrect because it can't access custom encoding strategies of the type-erased type:

See https://forums.swift.org/t/how-to-encode-objects-of-unknown-type/12253/6

Any ideas? I mean this would only be a problem for custom types right?

tkrajacic avatar May 23 '18 05:05 tkrajacic