Contents

setValue(_:forKey:)

Invokes Setvalue(_:forkey:) on each of the array’s items using the specified value and key.

Declaration

func setValue(_ value: Any?, forKey key: String)

Parameters

  • value:

    The object value.

  • key:

    The key to store the value.

See Also

Key-Value Coding