{"data":{"allPost":{"edges":[{"node":{"slug":"/post/2019/09/conforming-to-codable-for-associated-value-enums-in-swift-9e3c","title":"Conforming to Codable for Associated Value Enums in Swift","subtitle":"","isPublished":true,"createdTime":"2019-09-10T00:00:00.000Z","lastModifiedTime":null,"license":null,"tags":["Swift","Codable","Associated Value Enum"],"category":"Programming","file":{"childMdx":{"excerpt":"Understanding Associated Value Enums Why there are associated value enums in Swift? I mean, why the Swift core\nteam designed associated value enum？ To understand it, firstly, let's take a look at the following example in C: The C  struct   Device  represents a device. The member  pointer  is an…"}}}}]}},"pageContext":{"slug":"/tag/associated-value-enum","locale":null,"title":"Tags > Associated Value Enum","showsPageTitle":true,"keywords":["WeZZard","Pieces of My Soul"],"description":"","items":["8e601448-778d-51ca-a66b-b68b06248377"],"paginationInfo":{"basePath":"/tag/associated-value-enum","pageIndex":0,"pagesCount":1,"previousPageTitle":"Earlier Posts","nextPageTitle":"Later Posts"}}}