List Badge
Generates a badge for the view from an integer value.
Platform Compatibility
Tags
SwiftUI Code
List {
Section("Header") {
Text("Foo")
.badge("1")
Text("Bar")
.badge(2)
}
}Generates a badge for the view from an integer value.
List {
Section("Header") {
Text("Foo")
.badge("1")
Text("Bar")
.badge(2)
}
}A structure that computes views and disclosure groups on demand from an underlying collection of tree-structured, identified data.
A view that shows or hides another content view, based on the state of a disclosure control.
Sets the label that is used in a section index to point to this section, typically only a single character long. Changes the visibility of the list section index.
A gauge style that displays an open ring with a marker that appears at a point along the ring to indicate the gauge’s current value