---
title: isLeaf
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstreenode/isleaf
---

# isLeaf

A Boolean that indicates whether the receiver is a leaf node.

## Declaration

```swift
var isLeaf: Bool { get }
```

## Discussion

Discussion true if the receiver is a leaf node (has no child nodes), otherwise false.

## See Also

### Getting information about a node

- [representedObject](appkit/nstreenode/representedobject.md)
- [indexPath](appkit/nstreenode/indexpath.md)
- [children](appkit/nstreenode/children.md)
- [mutableChildren](appkit/nstreenode/mutablechildren.md)
- [descendant(at:)](appkit/nstreenode/descendant(at:).md)
- [parent](appkit/nstreenode/parent.md)
