I have a function which fetches those objects from a particular entity that fulfill a specified criterion:
func fetchWithPredicate(entityName: String, argume
Swift 3
I found easiest way.
var predicate = NSPredicate(format: "key1 = %@ AND key2 = %@", value1, value2)