Instance Method
setVariantDefaultValue(_:keyPath:)
Sets the given value, if present, as the default value of the variant collection at the given key path.
mutating func setVariantDefaultValue<Value>(_ newValue: Value?, keyPath: WritableKeyPath<Self, VariantCollection<Value>?>) where Value : Decodable, Value : Encodable
Discussion
If a variant collection is present, this function updates its default value to the given value. Otherwise, it creates a new variant container with the given value as its default value.