---
title: "init(wrappedValue:from:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/codableconfiguration/init(wrappedvalue:from:)-8mkxk"
---

# init(wrappedValue:from:)

Creates a codable configuration wrapper for the given value, using given configuration provider type identified by key path.

## Declaration

```swift
init(wrappedValue: T, from keyPath: KeyPath<AttributeScopes, ConfigurationProvider.Type>)
```

## Parameters

- `wrappedValue`: The underlying value to make codable, using data from the configuration provider.
- `keyPath`: A key path that identifies the type of the configuration provider, which provides additional information to encode wrappedValue.

## See Also

### Creating a Codable Configuration

- [init(wrappedValue:)](foundation/codableconfiguration/init(wrappedvalue:).md)
- [init(wrappedValue:from:)](foundation/codableconfiguration/init(wrappedvalue:from:)-46oo6.md)
