---
title: numberOfItems
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsscrubber/numberofitems
---

# numberOfItems

The number of items represented by the scrubber.

## Declaration

```swift
var numberOfItems: Int { get }
```

## See Also

### Getting the state of the scrubber

- [highlightedIndex](appkit/nsscrubber/highlightedindex.md)
- [selectedIndex](appkit/nsscrubber/selectedindex.md)
