Search code examples
iosswift4contactscontact-list

blocked contacts in contact list IOS swift


My App requires access to the contact list. I was able to fetch contacts from my contact list and I populated a tableview with contact list however, I am facing a problem. My contact list includes users that are blocked on iphone. Is there is a way to check if the contact is blocked or no in my swift code


Solution

  • Actually I found an answer to my problem. I found that the blocked contact are have a first name called spam. I filtered out the names that are called spam from contact list