---
title: superEncoder()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/unkeyedencodingcontainer/superencoder()
---

# superEncoder()

Encodes a nested container and returns an Encoder instance for encoding super into that container.

## Declaration

```swift
mutating func superEncoder() -> any Encoder
```

## Return Value

Return Value A new encoder to pass to super.encode(to:).
