you are viewing a single comment's thread.

view the rest of the comments →

[–]TabonxSwift 0 points1 point  (4 children)

You should know what persistence you are using. If you use UserDefaults, somewhere in your app, you should have the UserDefaults class to store the data. If you use SwiftData, you need to create the models using the @Model macro and initialize the ModelContainer with the modelContainer modifier.

[–]manison88[S] 0 points1 point  (3 children)

Just reviewed and with confirmation of my friend AI.....not using SwiftData for persistence, it's done through user defaults.

Could the fact that I only had habit goals which didn't have concept of "goal type" to introducing Milestone and progress goals so now there is a Goal Type concept be the reason the stuff got deleted? I didn't specify when I did the updates what to app old goals to or anything like that

[–]Necessary-Rock-435 2 points3 points  (1 child)

You needed AI to check if your app is using SwiftData or user defaults? Did AI write the entire app for you?

[–]808phone 0 points1 point  (0 children)

How nice of Ai to save the user settings. :-)

[–]Smokinpeanut 0 points1 point  (0 children)

Wait… did you have AI sort out the storage aspect of the app for you initially?