Post

Replies

Boosts

Views

Activity

Reply to Bug? SwiftData + inheritance + optional many-to-one relationship
I encountered another bug with SwiftData and inheritance and reported it (FB21837287). This one is not related to CloudKit. Briefly, SwiftData crashes during auto-save when the schema contains: A base @Model class with at least one subclass (inheritance) A separate @Model class with a reference to the base class The crash occurs specifically when: There is a class inheritance hierarchy (Beta: Alpha) A separate class (Standalone) has a reference typed as the base class (Alpha?) Changing the reference from var ref: Alpha? to var ref: Beta? (subclass) eliminates the crash.
Feb ’26
Reply to Bug? SwiftData + inheritance + optional many-to-one relationship
I encountered another bug with SwiftData and inheritance and reported it (FB21837287). This one is not related to CloudKit. Briefly, SwiftData crashes during auto-save when the schema contains: A base @Model class with at least one subclass (inheritance) A separate @Model class with a reference to the base class The crash occurs specifically when: There is a class inheritance hierarchy (Beta: Alpha) A separate class (Standalone) has a reference typed as the base class (Alpha?) Changing the reference from var ref: Alpha? to var ref: Beta? (subclass) eliminates the crash.
Replies
Boosts
Views
Activity
Feb ’26
Reply to No Update on Apple Developer Program (Company) Enrollment Since January 2, 2026
Hi, I am in a similar situation and called a support number. They said they are very behind on these and that there is no specific timeline for completion.
Replies
Boosts
Views
Activity
Jan ’26
Reply to Bug? SwiftData + inheritance + optional many-to-one relationship
Hello, I am planning a project using SwiftData and inheritance with CloudKit but I am quite concerned about running into this bug. When I click the link to the FB ID above, it comes up empty as do searches for it. Does anyone know the current status?
Replies
Boosts
Views
Activity
Jan ’26
Reply to SwiftData .autosaveEnabled / rollback() trouble
I had various issues trying to implement the suggested approach, largely because my architecture is quite different than what is in the article. Xcode AI helped but eventually led me to just make scratch copies of the data to be edited.
Replies
Boosts
Views
Activity
Dec ’25
Reply to SwiftData .autosaveEnabled / rollback() trouble
Hello Jordan, I think this will work. I will let you know. The Medium article refers to the Hacking With Swift article and seems to solve the problems mentioned in it. I'll get back to you on this after I've finished trying to implement it.
Replies
Boosts
Views
Activity
Dec ’25
Reply to Xcode 16 MacOS Sequoia SwiftData not saving data after running application
I am having the exact same issue, and modelContext.save() resolves it. I will be eager to hear more on that Feedback Report.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’24
Reply to SwiftData with shared and private containers
Yes, SwiftData is great, but until it is only marginally useful if we can't easily sync data across devices or share data with other users.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’24