Migrating JSON File Schema Changes in Swift
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.
Video walk through: