---
title: BadgeProminence
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/badgeprominence
---

# BadgeProminence

The visual prominence of a badge.

## Declaration

```swift
struct BadgeProminence
```

## Overview

Overview 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 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)

## Topics

### Getting background prominence

- [standard](swiftui/badgeprominence/standard.md)
- [increased](swiftui/badgeprominence/increased.md)
- [decreased](swiftui/badgeprominence/decreased.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Displaying a badge on a list item

- [badge(_:)](swiftui/view/badge(_:).md)
- [badgeProminence(_:)](swiftui/view/badgeprominence(_:).md)
- [badgeProminence](swiftui/environmentvalues/badgeprominence.md)
