<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSCoder/decodePropertyList(forKey:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCoder(im)decodePropertyListForKey:"
  },
  "title" : "decodePropertyList(forKey:)"
}
-->

# decodePropertyList(forKey:)

Returns a decoded property list for the specified key.

```
func decodePropertyList(forKey key: String) -> Any?
```

## Parameters

`key`

The coder key.

## Return Value

A decoded object containing a property list.

## Discussion

This method calls [`decodeObjectOfClasses:forKey:`](/documentation/Foundation/NSCoder/decodeObjectOfClasses:forKey:) with a set allowing only property list types.

---

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)