<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UserNotifications",
  "identifier" : "/documentation/UserNotifications/UNNotificationSettings/badgeSetting",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "User Notifications"
    ],
    "preciseIdentifier" : "c:objc(cs)UNNotificationSettings(py)badgeSetting"
  },
  "title" : "badgeSetting"
}
-->

# badgeSetting

The setting that indicates whether badges appear on your app’s icon.

```
var badgeSetting: UNNotificationSetting { get }
```

## Discussion

When the value of this property is [`UNNotificationSetting.enabled`](/documentation/UserNotifications/UNNotificationSetting/enabled), the app is authorized to badge its icon. The system tries to badge your app’s icon when the [`badge`](/documentation/UserNotifications/UNNotificationContent/badge) property of a [`UNNotificationContent`](/documentation/UserNotifications/UNNotificationContent) object contain a value, or when the `aps` dictionary in a remote notification contains the `badge` key.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)