Taking on new clients for Elixir and web development.
Mike Zornek

Migrating JSON File Schema Changes in Swift

Posted on

As part of my side project bartering, I’ve build a simple open source Xcode project that demonstrate how you could save your Swift app’s storage as a simple JSON file and then migrate the file schema changes over time. This is particularly useful when you have users generating data and documents in beta builds while the app internals are changing a lot.

The code is in written in Swift and is utilizing a Xcode 12-specific SwiftUI project, though the core ideas are general purpose.

https://github.com/zorn/VersionedFilesDemo

Video walk through:


About the Author. Mike Zornek is a developer and teacher focusing on product design and development with a heavy focus on Elixir and LiveView. In between his projects, Mike helps other teams through consulting. During off hours, he enjoyed watching Phillies baseball and playing relaxing video games.