Codable

Codable CoreData

Swift 4, amongst other things, brought a way to serialize/deserialize data into/from model objects called Codable. Those changes were proposed under SE-0166. I'm not going to elaborate on how Codable works since it's basically pretty straight forward. If you want to know more about it, I participated in