I have a core data model object called Entry. In this I have an attribute IsFavorite.
I would like to use an NSPredicate to filter the results of my NSFetchedResultsCont
For me, on SWIFT 3.0 use NSNumber and %@ didn't work, I had to use integer values:
NSPredicate(format: "yourAttributeName == %i", yourBooleanValue ? 1 : 0)