Contents

value(forKeyPath:)

Returns the value for the derived property identified by a given key path.

Declaration

func value(forKeyPath keyPath: String) -> Any?

Parameters

  • keyPath:

    A key path of the form relationship.property (with one or more relationships); for example “department.name” or “department.manager.lastName”.

Return Value

The value for the derived property identified by keyPath.

Discussion

The default implementation gets the destination object for each relationship using value(forKey:) and returns the result of a value(forKey:) message to the final object.

See Also

Related Documentation

Getting Values