Re: [swift-users] Robust Codable coding

2017-06-23 Thread Kyle Murray via swift-users
Hi Howard, If I'm understanding your question correctly, you're asking: What happens if you remove, for example, the comment property in v2 of your Project structure? The way you've set things up lets you remove all references to comment in your code, and it can still exist as a key in old data

[swift-users] Robust Codable coding

2017-06-23 Thread Howard Lovatt via swift-users
Hi All, I have started to use Codable and was looking for some advice. I want to make the persisted data structure robust so that if I change the properties as the code develops the new code can deserialise an old saved file. This is what I am currently doing: struct Project: Codable { va