---
title: allKeys
framework: swift
role: symbol
role_heading: Instance Property
path: swift/keyeddecodingcontainerprotocol/allkeys
---

# allKeys

All the keys the Decoder has for this container.

## Declaration

```swift
var allKeys: [Self.Key] { get }
```

## Discussion

Discussion Different keyed containers from the same Decoder may return different keys here; it is possible to encode with multiple key types which are not convertible to one another. This should report all keys present which are convertible to the requested type.
