Contents

init(wrappedValue:)

Creates a codable configuration wrapper for the given value.

Declaration

init(wrappedValue: T)

Parameters

  • wrappedValue:

    The underlying value to make codable.

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