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
swift 3 version worked great for me:
let predicate = NSPredicate(format: "isFriend == %@" ,NSNumber(booleanLiteral: false))
following @scipilot answer the bool shouldn't be an optional. thanks for that!