I am currently rewriting one of my apps in swift and the changes I am making to coredata are so significant that I want to completely wipe the previous model and replace it with a new one. I cannot find a walkthrough anywhere that shows how to do this. Any assistance will be appreciated. Thank you
Delete core data model and replace with a new one
Step 1: Create new data model file.
Step 2: Change reference in your CoreData setup code to use new file name.
That's if you're completely ditching the old model and the old data associated with it.
Will that delete the database associated with the current model though?
What database associated with the current model?
Yes, if I just switch the model will it also delete the database associated with that model? I hope so because that will make things much easier. Thank you for your help!