A type that can convert itself into and out of an external representation.
- Xcode 9.0+
- Swift Standard Library
Codable is a type alias for the
Decodable protocols. When you use
Codable as a type or a generic constraint, it matches any type that conforms to both protocols.