Contents

decreased

The lowest level of prominence for a badge.

Declaration

static let decreased: BadgeProminence

Discussion

This level or prominence should be used for badges that display a value of passive information that requires no user action, such as total number of messages or content.

In lists on iOS and macOS, this results in badge labels being displayed without any extra decoration. On iOS, this looks the same as .standard.

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

See Also

Getting background prominence