How do I find out which groups a unified contact belongs to?

Hi, would someone help me get started on a problem in iOS using Swift? How do I get all the groups that a unified contact belongs to? Or how would I check to see if a contact is within a group? That would allow me to find out all the groups that a contact belongs to. I suspect what I need to learn is how to create the predicate to set the predicate property of a CNContactFetchRequest that I need to use.


Any help will be appreciated.

How do I find out which groups a unified contact belongs to?
 
 
Q