Post

Replies

Boosts

Views

Activity

Reply to Inform users that they need to delete and reinstall the app
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.
Dec ’24
Reply to The compiler is unable to type-check this expression in reasonable time in Xcode 12 with SwiftUI
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to How to retrieve all records that have a common parent relation
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 !
Replies
Boosts
Views
Activity
Mar ’24
Reply to text alignment in SwiftUI
Anyone knows how to center the text vertically?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to Inform users that they need to delete and reinstall the app
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.
Replies
Boosts
Views
Activity
Dec ’24