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

# CFTreeGetFirstChild(_:)

Returns the first child of a tree.

## Declaration

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

## Parameters

- `tree`: The tree to examine.

## Return Value

Return Value The first child of tree. Ownership follows the The Get Rule.

## See Also

### Examining a Tree

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