Codable Deep Dive
summary
Explains what is implemented: Swift Codable plus a custom decoder that maps flat environment variables into nested structs, shows a working EnvironmentDecoder and a string value decoder that splits comma lists into arrays, demonstrates keyed, unkeyed and single‑value containers, uses ProcessInfo via userInfo to change decoding rules, and encodes back out; code runs as a command‑line demo, decodes app configuration and API keys, and the repository with working examples is on GitHub.
AI-written summary · about
chapters (15)
- 0:00Intro
- 0:24About Marcus
- 2:02About Disabled Kernel
- 2:39About Codable
- 3:27Basic Usage
- 7:37Coding Keys
- 9:32Decoders
- 13:01Custom Decoder
- 15:10Decoder Protocol
- 17:31Single Value
- 20:12Uncoded Containers
- 24:12Coding Paths
- 28:49Coding User Info
- 32:29Encoding
- 33:47Model Objects








