Based on my experience, using self inside #predicate is not allowed. Do you have unique identifier field for Item?
If so store that then use unique identifier in a variable and then use id inside your #predicate.
Assume name is the unique identifier then use the following code
example:
let id = self.name
let predicate = #predicate { $0.item.name == id }
....
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: