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>) -> WritableKeyPath<Root, AppendedValue> where Self == WritableKeyPath<Root, Value>

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. このキーパスのルートから、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. このメソッドを使うことで、このキーパスを別のキーパスの値型にまで広げてください。appending(path:)を呼び出すことは、与えられたキーパスがドット表記法を使って指定された場合と同じキーパスという結果になります。