Understanding Codable

Understanding Codable

The Encodable and Decodable protocols that were added in Swift 4 provide an easy way to convert Swift types to and from external representations like JSON. In this talk you’ll learn how to use these protocols, and how the Codable system is designed.

Codable is also being adopted in server-side Swift. Learn how to write type-safe Swift web APIs yourself, without having to worry about HTTP content types, headers, and parsing. Easily extract the query parameters from web requests and handle them appropriately in just a few lines of code.

Finally, we’ll look at new enhancements to Codable, coming in Swift 4.1, which will make things even simpler for app developers.

Presented at iOSCon London 2018.

29bb4c32d7b3ec323be870138222bce8?s=128

Ian Partridge

March 22, 2018
Tweet