<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PDFKit",
  "identifier" : "/documentation/PDFKit/PDFAnnotation/value(forAnnotationKey:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PDFKit"
    ],
    "preciseIdentifier" : "c:objc(cs)PDFAnnotation(im)valueForAnnotationKey:"
  },
  "title" : "value(forAnnotationKey:)"
}
-->

# value(forAnnotationKey:)

Returns a deep copy of the key-value pairs of properties for the specified key.

```
func value(forAnnotationKey key: PDFAnnotationKey) -> Any?
```

## Parameters

`key`

A [`PDFAnnotationKey`](/documentation/PDFKit/PDFAnnotationKey) or appropriate string from the Adobe PDF Specification.

## Discussion

---

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)