I have fetchedResultsController that uses an entity named Convo
. I am trying to check if the fetched objects all satisfy a given predicate on tap of a button like this...
if fetchedResultsController.fetchedObjects?.allSatisfy(){
print("All objects have been read")
}else{
print("All objects have not been read")
}
But I am unsure how to enter isRead
as the allSatisfy()
parameter argument. My Convo
entity has these attributes
I would like to check for isRead
.