Instance Methodswift 6.0.3Swift

appending(path:)

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

func appending<Root, Value, AppendedValue>(path: WritableKeyPath<Value, AppendedValue>) -> WritableKeyPath<Root, AppendedValue> where Self == WritableKeyPath<Root, Value>

Parameters

path

The key path to append.

Returns

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

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.