---
title: "Discussion on \"Saved Templates That Survive App Updates: Versioned Codable in Swift\" | Hashnode"
description: "Discussion on \"Saved Templates That Survive App Updates: Versioned Codable in Swift\". The first version of a \"save this as a template\" feature is always easy. Make the struct Codable, encode an array to JSON, write it to disk. Ship it.\nThe trouble arrives in the second version, when yo"
url: "https://hashnode.com/posts/saved-templates-that-survive-app-updates-versioned-codable-in-swift/6af3ccd9228eb7e2f144bcd4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Saved Templates That Survive App Updates: Versioned Codable in Swift](https://maxwelldispatch.hashnode.dev/saved-templates-that-survive-app-updates-versioned-codable-in-swift?utm_source=hashnode&utm_medium=feed)

The first version of a "save this as a template" feature is always easy. Make the struct Codable, encode an array to JSON, write it to disk. Ship it. The trouble arrives in the second version, when yo

11h ago · 8 min read · maxwelldispatch.hashnode.dev  
Read the article

-   [#ios](https://hashnode.com/tag/ios)
-   [#codable](https://hashnode.com/tag/codable)
-   [#swift](https://hashnode.com/tag/swift)
-   [#mobile](https://hashnode.com/tag/mobile)

## Written by

[Maxwell](https://hashnode.com/@maxwelldispatch)

@maxwelldispatch

  
[View profile](https://hashnode.com/@maxwelldispatch)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
