Generic Instance Method

appending(path:)

Returns a new key path created by appending the given key path to this one.

Declaration

func appending<Root, Value, AppendedValue>(path: WritableKeyPath<Value, AppendedValue>) -> ReferenceWritableKeyPath<Root, AppendedValue>

Parameters

path

The key path to append.

Return Value

A key path from the root of this key path to the value type of path.

Discussion

Use this method to extend this key path to the value type of another key path. Calling appending(path:) results in the same key path as if the given key path had been specified using dot notation.