After the Xcode 9.3 update, I\'ve noticed that if you want to have Predicate like this:
let predicate = NSPredicate(format: \"preferred = %@\", true as CVarArg)
I think you can also use this:
NSPredicate(format: "preferred = true")