Bringing Polymorphism to Codable

Polymorphism refers to the use of a single type to represent multiple different types. In this post, Matthaus Woolard shows us how to bring polymorphic behavior to Swift's Codable protocols, and provides a convenient property wrapper to avoid boilerplate code.