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

# descriptorForRequiredKeys(for:)

Returns the required key descriptor for the specified formatting style of the contact.

## Declaration

```swift
class func descriptorForRequiredKeys(for style: CNContactFormatterStyle) -> any CNKeyDescriptor
```

## Parameters

- `style`: The formatting style to be used for contact name.

## Return Value

Return Value The contact key descriptor for the formatting style. Discussion Include this method with the keys to fetch when fetching contacts. To format multiple styles, you can include multiple key descriptors with the keys to fetch.

## See Also

### Getting a descriptor

- [descriptorForRequiredKeysForDelimiter](contacts/cncontactformatter/descriptorforrequiredkeysfordelimiter.md)
- [descriptorForRequiredKeysForNameOrder](contacts/cncontactformatter/descriptorforrequiredkeysfornameorder.md)
