<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ContactsUI",
  "identifier" : "/documentation/ContactsUI/CNContactViewController/descriptorForRequiredKeys()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Contacts UI"
    ],
    "preciseIdentifier" : "c:objc(cs)CNContactViewController(cm)descriptorForRequiredKeys"
  },
  "title" : "descriptorForRequiredKeys()"
}
-->

# descriptorForRequiredKeys()

Returns the descriptor for all the keys that must be fetched on the contact before
setting it on the view controller.

```
nonisolated class func descriptorForRequiredKeys() -> any CNKeyDescriptor
```

## Return Value

Descriptor for all the keys that must be fetched.

## Discussion

Pass this descriptor to the `keysToFetch` of the <doc://com.apple.documentation/documentation/Contacts/CNContactFetchRequest>
if you want to display the contact in a [`CNContactViewController`](/documentation/ContactsUI/CNContactViewController).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)