I came up providing the user with a "backup" function they have to trigger to save all data in a file. Still considering the user will have to delete and reinstall the app, the backup file needs to be saved outside the app. Therefore I use ShareLink and leave it the user to save it in the appropriate place. Then at relaunching the new app, the possibility is offered the user either to start from scratch or load the backup file with a file picker.
I tried to reload the backup file without reinstallation of the app. The problem I faced was when removing the old data from core using a batchDeleteRequest. It generated exceptions in other views (especially the one displaying the content of the database). Whereas when relaunching the app after reinstallation, core data is empty yet no exception is generated.
Post
Replies
Boosts
Views
Activity
Anyone knows how to center the text vertically?
Ok I found the mistake in my code. Had nothing to do with Core Data, sorry.
Anyone who has the authorization to do so, please delete the post. Thanks !
I just had exactly the same error after just modifying two lines of code. By undoing the changes I found out the problem was the use of the TextField modifier .textInputAutocapitalization().
In fact it is working fine with .autocapitalization() instead, though marked as deprecated.