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

# nestedUnkeyedContainer()

Decodes an unkeyed nested container.

## Declaration

```swift
mutating func nestedUnkeyedContainer() throws -> any UnkeyedDecodingContainer
```

## Return Value

Return Value An unkeyed decoding container view into self.

## Discussion

Discussion note: DecodingError.typeMismatch if the encountered stored value is not an unkeyed container.
