I have a Realm Swift question I have been pondering for over a week. Would appreciate any new thoughts to explore.
I have an app in the store that folks have stored data in the Realm database. I added a new model of Lists to sort the data. I did not need to migrate the code as I did not change the original model, and that that little tidbit is not described in the Realm docs anywhere I could find! Trial and error! Lol
When I upgrade the app, all the data is secure in the Realm database, but the tableView no longer displays it as I changed the variable that contains the data from a Results type to a List type. New additions to the database show up fine and are saved as expected.
So, the question is, does anyone have any ideas about how to perform a one time adding of the current data saved to Realm into the new List objects? I do have a routine that will check to see if the user has updated, that is not the problem. I just can’t get the data already saved there into the new lists.
I have been scratching my head for over a week now, and every permeation does not work. I can save empty objects, just not the data that is already there.
Any thoughts will be greatly appreciated!