CNContactViewController ignores allowsActions. SMS and Mail actions are offered:
with contactVC.allowsActions = false.
I setup CNContactViewController in viewDidLoad():
...
let newContact = CNMutableContact()
newContact.emailAddresses.append(CNLabeledValue(label: CNLabelHome, value: "[email protected]" as NSString))
contactVC = CNContactViewController(forUnknownContact: newContact)
guard let contactVC = contactVC else {
return
}
contactVC.contactStore = CNContactStore()
contactVC.delegate = self
contactVC.allowsActions = false
...
Why does CNContactViewController show actions with contactVC.allowsActions = false?



The AllowsActions property does nothing for me too. My best guess is that Apple forgot to support the property when they updated that view controller in newer versions of iOS (it looks quite a bit different now than it did in iOS 9 when the Contacts framework was first released). If anyone has figured out a way to make it work, or to hide that UI, please share.