I want to do something like this:
NSPredicate(format: "name contains[cd] %@ AND (position == %@ OR position == %@), name, position1, position2)
However, I've tried that and I keep getting serious Core Data application errors. I then tried using NSCompoundPredicate, but I can't combine "AND" and "OR"s there either.
I've read Combining 'AND' and 'OR' Condition in NSPredicate and it's different in that the questioner wanted an "OR" on a subcollection so the answer involves a subquery which I don't want.
How do I do this?