Best way to store data in swiftUI 2.0 ?

Whats the best way to store data now when coredata doesnt seems to work for a multiplatform app?

Theres no appdelegate and no checkmark to include coredata when creating a project.

Trying to do a simple to-do-list app thats cross platform, for practicing swiftui




App Delegate still exists, you just need to use the new property wrapper to wire up your subclass.
https://developer.apple.com/documentation/swiftui/uiapplicationdelegateadaptor

I couldn't find much info on how to implement it myself or haven't come across the magic video yet, but Paul Hudson had a good writeup last week titled: "What is the @UIApplicationDelegateAdaptor property wrapper?"

The new Multiplatform template just doesn't have a checkbox, I'd love to have a "add CloudKit" in addition to the CoreData bit. Workaround, create a regular iOS app using the old template, check the box, then copy paste it into your new project.

You can show this post for more informations: Using Core Data with SwiftUI App Protocol.
Best way to store data in swiftUI 2.0 ?
 
 
Q