Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

iAppleOrchard

macrumors 6502a
Original poster
Feb 19, 2022
851
1,151
Colorado
Hello! I am a fairly new developer, and I used SwiftData for my saving.

Now, I want to support iOS 15 and newer so more people can use my app.

What would I need to do to convert my SwiftData to CoreData? Anything I need to know?
 

Greybeard2017

macrumors member
Dec 7, 2020
39
58
Interesting - I have gone the opposite way - converted Core Data to SwiftData.

Have you written anything in Core Data? Have a look at a sample app and find the equivalents of the functions you have written in your app in SwiftData.

But basically you are going to pretty much start over - most of the functionality is available but not as well integrated into SwiftUI - and its not something easily explained in a forum response.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.