func badge(Text?) -> some View
Generates a badge for the view from a text view.
func badge(LocalizedStringKey ?) -> some View
Generates a badge for the view from a localized string key.
func badge(Int) -> some View
Generates a badge for the view from an integer value.