tdavis6 / Restaurant-Decider

Food Decider iOS App
MIT License
0 stars 0 forks source link

Make lists persist in SwiftData #7

Open tdavis6 opened 3 months ago

tdavis6 commented 3 months ago

Maybe create a function that saves all arrays in SwiftData that runs whenever an array is edited, and another function that retrieves the data from SwiftData when the app is opened. Maybe create a loading splash for when this is occurring if needed.

tdavis6 commented 1 month ago

https://developer.apple.com/tutorials/develop-in-swift/save-data#Connect-SwiftData-and-SwiftUI