Post

Replies

Boosts

Views

Activity

Reply to Notifications not working on ModelContext
I'm still encountering this issue and so confused there should not be an so obvious bug here. Recently I decide to make App purely relying on SwiftData: 1. reading from network 2. write to context 3. only read data when notified without interrupting context writing. For the notification object, I tried context, context.self, and even the actor calling the context.insert. None of them works. Really need help!
Sep ’24
Reply to Filter a list of Item objects on a related Product Object passed as a Bindable
yes, you can only use static or let value in Query predicate at declaration.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Dec ’24
Reply to Sending main actor-isolated value of type 'PurchaseAction' with later accesses to nonisolated context risks causing data races
mark your class as @unchecked Sendable and try
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to Notifications not working on ModelContext
I'm still encountering this issue and so confused there should not be an so obvious bug here. Recently I decide to make App purely relying on SwiftData: 1. reading from network 2. write to context 3. only read data when notified without interrupting context writing. For the notification object, I tried context, context.self, and even the actor calling the context.insert. None of them works. Really need help!
Replies
Boosts
Views
Activity
Sep ’24