Initializer
init(wrappedValue:)
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
Creates a codable configuration wrapper for the given value.
init(wrappedValue: T)
Parameters
wrappedValueThe 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.