---
title: descriptorForRequiredKeys()
framework: contacts
role: symbol
role_heading: Type Method
path: contacts/cncontactvcardserialization/descriptorforrequiredkeys()
---

# descriptorForRequiredKeys()

Use to fetch all contact keys required to create vCard data from a contact.

## Declaration

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

## Return Value

Return Value A key descriptor to be used in the keysToFetch array when fetching the contacts.
