Post

Replies

Boosts

Views

Activity

Reply to Migrating schemas in SwiftData + CloudKit
Ran into the same problem.... I finally figured it out and opened a ticket with apple and they said it was 'intended functionality'. You need to create a V2 and V3 schema. In the V2 schema, make your quitting method property optional and use a lightweight migration. Then in V3, make it required and use a custom migration to assign a default value to the variable.
May ’25