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

# init(wrappedValue:)

Creates a codable configuration wrapper for the given value.

## Declaration

```swift
init(wrappedValue: T)
```

## Parameters

- `wrappedValue`: The underlying value to make codable.

## Discussion

Discussion This initializer doesn’t take a ConfigurationProvider.Type parameter. As a result, it won’t compile unless the compiler can imply the provider type through other means, such as a generic expression like @CodableConfiguration<AttributedString, FoundationAttributes>. For clarity, use this type’s other initializers, which take the configuration provider type as an explicit parameter.

## See Also

### Creating a Codable Configuration

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