{
  "accessibility" : [
    "A count is read as \"7 items\", or \"More than 99\" above the cap; replace it with `.accessibilityLabel` when the unit matters (\"7 unread messages\").",
    "A status badge is read by its label; the symbol is hidden from VoiceOver. With `showsLabel: false` the label remains the accessibility label and the symbol shape still identifies the tone.",
    "Text on a coloured fill uses `theme.onColor`, the more legible of white and near-black for that fill. Digits follow the locale.",
    "The caption font follows Dynamic Type."
  ],
  "category" : "feedback",
  "changelog" : [
    {
      "changes" : [
        "Release 1.1.0: see the project changelog."
      ],
      "date" : "2026-12-03",
      "version" : "1.1.0"
    },
    {
      "changes" : [
        "Initial release."
      ],
      "date" : "2026-12-02",
      "version" : "1.0.0"
    }
  ],
  "dependencies" : [
    {
      "id" : "glass-components-support",
      "version" : "1.1.0"
    },
    {
      "id" : "glass-forms-support",
      "version" : "1.1.0"
    },
    {
      "id" : "glass-foundation",
      "version" : "1.1.0"
    }
  ],
  "description" : "Count, value or status marker that never relies on colour alone.",
  "examples" : [
    {
      "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassBadgeExample: GlassExample {\n    public static let componentID = \"glass-badge\"\n    @State private var unread = 7\n\n    public init() {}\n\n    public var body: some View {\n        VStack(alignment: .leading, spacing: 16) {\n            HStack(spacing: 12) {\n                Text(\"Inbox\")\n                GlassBadge(count: unread)\n                Spacer()\n                Stepper(\"Unread\", value: $unread, in: -1...150, step: 31).labelsHidden()\n            }\n            HStack(spacing: 12) {\n                GlassBadge(\"New\", tone: .accent)\n                GlassBadge(\"Beta\")\n                GlassBadge(\"−12 %\", tone: .critical)\n                GlassBadge(count: 0, showsZero: true, tone: .neutral)\n            }\n            HStack(spacing: 12) {\n                GlassBadge(\"Paid\", tone: .success, style: .soft)\n                GlassBadge(\"Due soon\", tone: .warning, style: .soft)\n                GlassBadge(\"Draft\", style: .outline)\n                GlassBadge(status: \"Online\", tone: .success, style: .soft)\n            }\n            Image(systemName: \"bell\")\n                .font(.title2)\n                .frame(width: 44, height: 44)\n                .glassBadge(count: unread)\n                .accessibilityLabel(\"Notifications\")\n            VStack(alignment: .leading, spacing: 8) {\n                GlassBadge(status: \"Online\", tone: .success)\n                GlassBadge(status: \"Degraded\", tone: .warning)\n                GlassBadge(status: \"Offline\", tone: .critical)\n                GlassBadge(status: \"Unknown\", tone: .neutral)\n            }\n        }\n        .padding()\n    }\n}\n\n#Preview(\"GlassBadge\") { GlassBadgeExample().glassTheme(.aurora) }\n",
      "title" : "GlassBadge example"
    }
  ],
  "files" : [
    {
      "bytes" : 10134,
      "path" : "Components/Feedback/GlassBadge.swift",
      "sha256" : "9b122503c2c32e209c45119663bec0eec11d59b81c399d400e13289c16a20465"
    }
  ],
  "frameworks" : [

  ],
  "id" : "glass-badge",
  "kind" : "content-component",
  "license" : "MIT",
  "minimumOS" : {
    "iOS" : "26.0",
    "iPadOS" : "26.0",
    "macOS" : "26.0"
  },
  "name" : "GlassBadge",
  "platforms" : [
    "iOS",
    "iPadOS",
    "macOS"
  ],
  "schemaVersion" : 1,
  "sha256" : "ce5854096108e7e101580833bf49ae0ce7129e323cc1f9aa614487081b71c019",
  "symbols" : [
    "GlassBadgeStyle",
    "GlassBadgeFormatter",
    "GlassBadge"
  ],
  "version" : "1.1.0"
}
