---
title: badgeCount
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicontextmenuconfiguration/badgecount
---

# badgeCount

The number of items in a multiple-item interaction.

## Declaration

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

## Discussion

Discussion The system uses this value to generate a badge for the stack of selected items to indicate how many items the menu is acting on. A value below 2 hides the badge. If you don’t set this value, the system determines it automatically.

## See Also

### Handling multiple-item interactions

- [secondaryItemIdentifiers](uikit/uicontextmenuconfiguration/secondaryitemidentifiers.md)
