---
title: "CFTreeFindRoot(_:)"
framework: Core Foundation
role: symbol
role_heading: Function
path: "corefoundation/cftreefindroot(_:)"
---

# CFTreeFindRoot(_:)

Returns the root tree of a given tree.

## Declaration

```swift
func CFTreeFindRoot(_ tree: CFTree!) -> CFTree!
```

## Parameters

- `tree`: The tree to examine.

## Return Value

Return Value The root of tree where root is defined as a tree without a parent. Ownership follows the The Get Rule.

## See Also

### Examining a Tree

- [CFTreeGetChildAtIndex(_:_:)](corefoundation/cftreegetchildatindex(_:_:).md)
- [CFTreeGetChildCount(_:)](corefoundation/cftreegetchildcount(_:).md)
- [CFTreeGetChildren(_:_:)](corefoundation/cftreegetchildren(_:_:).md)
- [CFTreeGetContext(_:_:)](corefoundation/cftreegetcontext(_:_:).md)
- [CFTreeGetFirstChild(_:)](corefoundation/cftreegetfirstchild(_:).md)
- [CFTreeGetNextSibling(_:)](corefoundation/cftreegetnextsibling(_:).md)
- [CFTreeGetParent(_:)](corefoundation/cftreegetparent(_:).md)
