Post

Replies

Boosts

Views

Activity

Comment on SwiftData model doesn't work with Transferable and Codable
Thanks for providing this suggestion. This worked brilliantly in the Swift 5 language mode. However, since migrating to Swift 6, this solution no longer works. A multitude of errors are thrown when using the solution you have provided in Swift 6.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’24
Comment on Importing Data into SwiftData in the Background Using ModelActor and @Query
I have observed this too. I am on 15.1 Developer Beta 2, and while the UI updates when the property of a relationship that the object being presented changes, it updates after four or five explicit save calls. Not exactly useful in my case as I want the UI to update as soon as the update is received.
Replies
Boosts
Views
Activity
Aug ’24
Comment on Model Container Sendable Throwing Error in Swift 6
Ah I see. Well, thanks for your response. I guess we'll have to wait till the next Beta to see this issue resolved.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’24
Comment on Xcode 15 beta 5 Mac app getting stuck
Based on my investigations, it seems that when I have relationships of any kind in SwiftData, the properties' getter methods are continuously fetching data. I don't know if your issues are caused by the same problem or something similar.
Replies
Boosts
Views
Activity
Aug ’23