My iOS project is currently on RealmSwift version 3.19.1, which I installed through CocoaPods when that was the most recent version. (I know, I’ve been terrible about keeping up with updates) Currently I only use the local storage parts of the RealmDB SDK, but I want to update to the latest RealmSwift version so I can start implementing sync capabilities and user authentication in my app with MongoDB.
I see there are a lot of differences between the current RealmSwift version and my 3.19.1 version, such as object variables being declared using “@Persisted” rather than “@objc dynamic”. I wanted to know if there’s a guide to migrating current object models to the new object models? Will it be fine to just update RealmSwift using the CocoaPods update function, or do I need to prepare my code prior to updating? Can object model changes like what I mentioned above be made in a realm migration?
I figure updating RealmSwift to the latest version is the first messy step towards implementing sync and a MongoDB backend, but I want to make this update in a way that won’t impact users’ saved local data when I release the update with these changes to the app store.