Thanks!
Elsewhere in my code I am observing a didSave notification:
.onReceive(NotificationCenter.default.publisher(for: ModelContext.didSave)) { object in
...
So this call is triggering that warning, and it is telling me that whoever is observing didSave will not get notifications from that specific call, since it is running on a background thread.
I think I get it :)
Post
Replies
Boosts
Views
Activity
I have filed feedback to report this bug (FB15436970). Thanks for taking a look!
Apologies, the following model code is also needed for the sample code to work:
@Model
final class Item {
var timestamp: Date
init(timestamp: Date) {
self.timestamp = timestamp
}
}