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

# superDecoder()

Decodes a nested container and returns a Decoder instance for decoding super from that container.

## Declaration

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

## Return Value

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

## Discussion

Discussion note: DecodingError.valueNotFound if the encountered encoded value is null, or of there are no more values to decode.
