List Badge Prominence
Specifies the prominence of badges created by this view.
Platform Compatibility
Tags
SwiftUI Code
List {
Section("Header") {
Text("Increased")
.badge("1")
.badgeProminence(.increased)
Text("Standard")
.badge(2)
.badgeProminence(.standard)
Text("Decreased")
.badge(3)
.badgeProminence(.decreased)
}
}