setValue(_:forKey:)
Sets the arbitrary keyed-data for the specified key.
Declaration
class func setValue(_ anObject: Any?, forKey key: String)Parameters
- anObject:
The value for the key identified by
key. - key:
The name of one of the receiver’s properties.
Discussion
Nested transactions have nested data scope; setting a key always sets it in the innermost scope.