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.
Returns the parent for a given item.
func parent(forItem item: Any?) -> Any?The item for which to return the parent.
The parent for item, or nil if the parent is the root.