Contents

parent(forItem:)

Returns the parent for a given item.

Declaration

func parent(forItem item: Any?) -> Any?

Parameters

  • item:

    The item for which to return the parent.

Return Value

The parent for item, or nil if the parent is the root.

See Also

Getting Related Items