---
title: badge
framework: usernotifications
role: symbol
role_heading: Instance Property
path: usernotifications/unnotificationcontent/badge
---

# badge

The number that your app’s icon displays.

## Declaration

```swift
@NSCopying var badge: NSNumber? { get }
```

## Discussion

Discussion When the number in this property is 0, the system doesn’t display a badge. When the number is greater than 0, the system displays the badge with the specified number. When the value in this property is nil, the system leaves the current badge unchanged.

## See Also

### Reading app configuration

- [launchImageName](usernotifications/unnotificationcontent/launchimagename.md)
- [targetContentIdentifier](usernotifications/unnotificationcontent/targetcontentidentifier.md)
