---
title: numberOfVisibleItems
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscombobox/numberofvisibleitems
---

# numberOfVisibleItems

The maximum number of visible items to display in the pop-up list at one time.

## Declaration

```swift
var numberOfVisibleItems: Int { get set }
```

## Discussion

Discussion Use this property to configure how many items can be displayed at the same time. If the combo box has a scroller, the user can scroll to view additional items beyond the visible range.

## See Also

### Related Documentation

- [numberOfItems](appkit/nscombobox/numberofitems.md)

### Setting Display Attributes

- [hasVerticalScroller](appkit/nscombobox/hasverticalscroller.md)
- [intercellSpacing](appkit/nscombobox/intercellspacing.md)
- [isButtonBordered](appkit/nscombobox/isbuttonbordered.md)
- [itemHeight](appkit/nscombobox/itemheight.md)
