<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Contacts",
  "identifier" : "/documentation/Contacts/CNContact/areKeysAvailable(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Contacts"
    ],
    "preciseIdentifier" : "c:objc(cs)CNContact(im)areKeysAvailable:"
  },
  "title" : "areKeysAvailable(_:)"
}
-->

# areKeysAvailable(_:)

Determines whether all contact property values for the specified keys are fetched.

```
func areKeysAvailable(_ keyDescriptors: [any CNKeyDescriptor]) -> Bool
```

## Parameters

`keyDescriptors`

An array of contact property keys and/or key descriptors from contact objects.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if all the values are fetched; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

The [`isKeyAvailable(_:)`](/documentation/Contacts/CNContact/isKeyAvailable(_:)) or [`areKeysAvailable(_:)`](/documentation/Contacts/CNContact/areKeysAvailable(_:)) methods are used where you are not certain of the keys that when fetched. If this method returns <doc://com.apple.documentation/documentation/Swift/false>, refetch the contact using the contact identifier and the keys you want to fetch. Accessing a property that was not fetched will throw an [`CNContactPropertyNotFetchedExceptionName`](/documentation/Contacts/CNContactPropertyNotFetchedExceptionName) exception.

---

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)