Now available: Developer-focused Remote User Testing Session of your mobile app or website for $99.

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: