Jump to ratings and reviews
Rate this book

Flight School - Guide to Swift Codable

Rate this book
New in Swift 4, Codable radically improves the way you work with JSON and other representations of data.

Chances are that your app interacts with a web service in some capacity. And when it does, the data you’re getting back is most likely JSON. Codable provides the best way to map those JSON payloads to your Swift models. Thanks to automatic code synthesis from the compiler, tasks that used to take hours of engineering and hundreds of lines of boilerplate can now be done in a few moments — often with little to no additional code.

This book offers a comprehensive look at all aspects of Codable, starting with the basics, and exploring a variety of advanced topics through engaging example projects.

Reading this book, you'll:

• Learn how to navigate corner cases and shape your Codable model to whatever representation comes your way.
• Adapt Codable to the iTunes Search web API to build the core functionality of a music store app, and get a productivity boost from some command-line tricks.
• Build an in-flight ordering app backed by User Defaults, the easiest way to persist data across app launches.
• Make a luggage scanning app using QR codes and Core Data, and learn the best way to use Core Data with external data sources.
• Implement a custom encoder for the MessagePack format from scratch, and come away with a deep understanding of binary serialization formats.

Each chapter starts with a delightful illustration from Lauren Mendez (@littleloboart) and ends with a series of challenges for you to take your understanding to the next level. There are also plenty of sample code projects provided as Playground files.

141 pages, ebook

Published April 20, 2018

1 person is currently reading
10 people want to read

About the author

Mattt Zmuda

3 books3 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
6 (42%)
4 stars
7 (50%)
3 stars
1 (7%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 of 1 review
Profile Image for Jp.
307 reviews5 followers
February 11, 2019
As expected after reading his articles, clear, clever, witty, and with ample code examples to clarify. Exactly what I was hoping for and wanted.
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.