Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
97 views

I've been working on a small, SwiftUI/SwiftData app for personal usage. This has been going well until yesterday when I decided I should refactor the SwiftData side of things (split some tables up, ...
Peter M's user avatar
  • 7,583
0 votes
0 answers
55 views

I don't know how do I write a migration plan for this if it's required, is this a lightweight migration or a complex migration @Model class ParkModel { var items: [String]? init(items: [...
Nishant Minerva's user avatar
3 votes
1 answer
226 views

Question with sample code: We have two Swift Data models in VersionedSchemaV1 and want to add one optional field in one of the model in next app version. Shall we copy only changed model to ...
Navin Samuel's user avatar
0 votes
0 answers
90 views

Happy New Year, all! I'm trying to migrate my CoreData app to SwiftData. Prior to the migration, the Siri Shortcut's EntityPropertyQuery worked just fine, but now I'm struggling how to combine the [...
zkvvoob's user avatar
  • 496
1 vote
0 answers
187 views

I'm having trouble with my first migration using SwiftData - it's pretty simple, just adding a new var into the class. Here's the v1 model: import Foundation import SwiftData @Model final class ...
Doug Idle's user avatar
1 vote
0 answers
117 views

I’m writing test apps using SwiftData. Running migrations locally works fine. But I couldn’t find anything on how to handle a situation, where my local app is running on e.g. ‘MigrationSchemaV2’ and ...
MatFetsch's user avatar
-2 votes
1 answer
214 views

would anybody be so kind to provide a link or "steps to follow" that need to be done when you change a model and you want the updated app releases not to crash? Whenever I make a change to ...
matyasl's user avatar
  • 539