<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/DecodableWithConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation26DecodableWithConfigurationP"
  },
  "title" : "DecodableWithConfiguration"
}
-->

# DecodableWithConfiguration

A protocol for types that support decoding when supplied with an additional configuration type.

```
protocol DecodableWithConfiguration
```

## Topics

### Decoding

[`init(from: any Decoder, configuration: Self.DecodingConfiguration) throws`](/documentation/Foundation/DecodableWithConfiguration/init(from:configuration:))

Creates a new instance by retrieving the instance’s data from the specified decoder with help from the provided configuration.

### Supporting Types

[`associatedtype DecodingConfiguration`](/documentation/Foundation/DecodableWithConfiguration/DecodingConfiguration)

The configuration type that assists in decoding.

## Relationships

### Conforming Types

[`AttributedString`](/documentation/Foundation/AttributedString)

[`Expression`](/documentation/Foundation/Expression)

[`AttributeContainer`](/documentation/Foundation/AttributeContainer)

[`Predicate`](/documentation/Foundation/Predicate)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)