Type Method


Returns the arbitrary keyed-data specified by the given key.


class func value(forKey key: String) -> Any?



The name of one of the receiver's properties.

Return Value

The value for the data specified by the key.


Nested transactions have nested data scope. Requesting a value for a key first searches the innermost scope, then the enclosing transactions.

See Also

Getting and Setting Transaction Properties

class func setValue(Any?, forKey: String)

Sets the arbitrary keyed-data for the specified key.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software