Skip to content

Coding `Any` using Codable in Swift

Notifications You must be signed in to change notification settings

thousandyears/AnyCoding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AnyCoding

Custom Decoder and Encoder types for when you are working with Any

AnyDecoder

Decode Any into concrete T

AnyEncoder

Encode concrete T into Any

EmptyDecoder

Decode T from nothing

Notes

  • Any refers to a tree-like structure using dictionary and array types