Initializer

init(wrappedValue:from:)

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

Declaration 宣言

init(wrappedValue: T, from keyPath: KeyPath<AttributeScopes, ConfigurationProvider.Type>)
Available when ConfigurationProvider conforms to AttributeScope. ConfigurationProviderAttributeScopeに準拠する場合に利用可能です。

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