<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/badgeProminence(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE15badgeProminenceyQrAA05BadgeE0VF"
  },
  "title" : "badgeProminence(_:)"
}
-->

# badgeProminence(_:)

Specifies the prominence of badges created by this view.

```
nonisolated func badgeProminence(_ prominence: BadgeProminence) -> some View
```

## Parameters

`prominence`

The prominence to apply to badges.

## Discussion

Badges can be used for different kinds of information, from the
passive number of items in a container to the number of required
actions. The prominence of badges in Lists can be adjusted to reflect
this and be made to draw more or less attention to themselves.

Badges will default to `standard` prominence unless specified.

The following example shows a [`List`](/documentation/SwiftUI/List) displaying a list of folders
with an informational badge with lower prominence, showing the number
of items in the folder.

```
List(folders) { folder in
    Text(folder.name)
        .badge(folder.numberOfItems)
}
.badgeProminence(.decreased)
```

---

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)