---
title: nestedUnkeyedContainer()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/unkeyedencodingcontainer/nestedunkeyedcontainer()
---

# nestedUnkeyedContainer()

Encodes an unkeyed encoding container and returns it.

## Declaration

```swift
mutating func nestedUnkeyedContainer() -> any UnkeyedEncodingContainer
```

## Return Value

Return Value A new unkeyed encoding container.
