---
title: superDecoder()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/keyeddecodingcontainerprotocol/superdecoder()
---

# superDecoder()

Returns a Decoder instance for decoding super from the container associated with the default super key.

## Declaration

```swift
func superDecoder() throws -> any Decoder
```

## Return Value

Return Value A new Decoder to pass to super.init(from:).

## Discussion

Discussion Equivalent to calling superDecoder(forKey:) with Key(stringValue: "super", intValue: 0). note: DecodingError.keyNotFound if self does not have an entry for the default super key. note: DecodingError.valueNotFound if self has a null entry for the default super key.
