A collection of Swift Codable examples.
Codable is a protocol that allows you to encode and decode custom data types without writing any special code and without having to worry about losing your value types. It's a great way to save time and effort when working with JSON
data.
Introduced in Swift 4, the Codable API enables us to leverage the compiler in order to generate much of the code needed to encode and decode data to/from a serialized format, like JSON
.
- View the codable examples in the codable file.
- For this example, we'll be using language codes and names from the ISO 639-1 standard.
This project is released under the terms of The Unlicense, which allows you to use, modify, and distribute the code as you see fit.
- The Unlicense removes traditional copyright restrictions, giving you the freedom to use the code in any way you choose.
- For more details, see the LICENSE file in this repository.
Author: Scott Grivner
Email: [email protected]
Website: scottgrivner.dev
Reference: Main Branch