I've got the following predicates set up:
fetchRequest.predicate = NSCompoundPredicate(andPredicateWithSubpredicates: [
NSPredicate(format: "start >= %@", NSDate.init(timeIntervalSinceNow: 0).dateByRemovingTime()),
NSPredicate(format: "product.filter.enabled == %@", true)
])
The entity for the fetch request is an Activity
, which then contains a product. Each product then has a filter, which is either enabled or disabled.
Should it be reloaded when the boolean enabled
is changed?
If not: how can I make it trigger? With willChangeValueForKey
and didChangeValueForKey
when changing enabled
?