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

# badge

The number that your app’s icon displays.

## Declaration

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

## Discussion

Discussion Use this property to specify the number to apply to the app’s icon when the notification arrives. If your app isn’t authorized to display badge-based notifications, the system ignores this property. Specify the number 0 to remove the current badge, if present. Specify a number greater than 0 to display a badge with that number. Specify nil to leave the current badge unchanged.

## See Also

### Configuring app behavior

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