List Badge
Generates a badge for the view from an integer value.
Platform Compatibility
iOS 15..0+ iPadOS 15.0+ macOS 12.0+ visionOS 1.0+
Tags
SwiftUI Code
List {
Section("Header") {
Text("Foo")
.badge("1")
Text("Bar")
.badge(2)
}
}
Found an issue or have a suggestion?
Created: August 10, 2025Updated: August 10, 2025