{
  "accessibility" : [
    "The indicator and its label are one element: label (or \"Loading\" when none), value \"42 percent\" (or \"Loading\" when indeterminate), with the updates-frequently trait.",
    "The cancel button is a separate element labelled \"Cancel\" with the minimum hit target.",
    "The percentage uses monospaced digits so the label does not shift as the value changes."
  ],
  "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-foundation",
      "version" : "1.1.0"
    }
  ],
  "description" : "Determinate or indeterminate system progress with an optional cancel action.",
  "examples" : [
    {
      "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassProgressExample: GlassExample {\n    public static let componentID = \"glass-progress\"\n    @State private var uploaded = 30.0\n    @State private var isCancelled = false\n\n    public init() {}\n\n    public var body: some View {\n        VStack(alignment: .leading, spacing: 20) {\n            if isCancelled {\n                Text(\"Upload cancelled\").foregroundStyle(.secondary)\n            } else {\n                GlassProgress(\"Uploading sample.pdf\", value: uploaded, total: 120, onCancel: { isCancelled = true })\n            }\n            GlassProgress(\"Storage used\", value: 0.82, style: .circular)\n            GlassProgress(\"Connecting\")\n            GlassProgress(style: .circular)\n            HStack(spacing: 24) {\n                GlassProgress(\"Storage\", value: 0.82, style: .ring)\n                GlassProgress(\"Battery\", value: 0.46, style: .ring)\n            }\n            GlassProgress(\"Shipping address\", step: 2, of: 4)\n            HStack {\n                GlassButton(\"Add 30 MB\") { uploaded += 30 }\n                GlassButton(\"Restart\") {\n                    uploaded = 0\n                    isCancelled = false\n                }\n            }\n        }\n        .padding()\n    }\n}\n\n#Preview(\"GlassProgress\") { GlassProgressExample() }\n",
      "title" : "GlassProgress example"
    }
  ],
  "files" : [
    {
      "bytes" : 14859,
      "path" : "Components/Feedback/GlassProgress.swift",
      "sha256" : "522ad99d9af9927f32f08991472f4ebab3a6381e2bfddbc8ca6ccf0b859be834"
    }
  ],
  "frameworks" : [

  ],
  "id" : "glass-progress",
  "kind" : "native-wrapper",
  "license" : "MIT",
  "minimumOS" : {
    "iOS" : "26.0",
    "iPadOS" : "26.0",
    "macOS" : "26.0"
  },
  "name" : "GlassProgress",
  "platforms" : [
    "iOS",
    "iPadOS",
    "macOS"
  ],
  "schemaVersion" : 1,
  "sha256" : "defa9f1f04d4455d98b6aef780085fe05a69b04e5ccfc021126ad7d5549b8b09",
  "symbols" : [
    "GlassProgressStyle",
    "GlassProgressMath",
    "GlassProgress"
  ],
  "version" : "1.1.0"
}
