Initializer

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 コード化可能構成設定を作成する