SPB Git

Repository Public MIT

manifest.json 2.6 KB 63 lines json

1{2  "accessibility" : [3    "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.",4    "The cancel button is a separate element labelled \"Cancel\" with the minimum hit target.",5    "The percentage uses monospaced digits so the label does not shift as the value changes."6  ],7  "category" : "feedback",8  "changelog" : [9    {10      "changes" : [11        "Initial release."12      ],13      "date" : "2026-12-02",14      "version" : "1.0.0"15    }16  ],17  "dependencies" : [18    {19      "id" : "glass-foundation",20      "version" : "1.0.0"21    }22  ],23  "description" : "Determinate or indeterminate system progress with an optional cancel action.",24  "examples" : [25    {26      "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 {\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",27      "title" : "GlassProgress example"28    }29  ],30  "files" : [31    {32      "bytes" : 7624,33      "path" : "Components/Feedback/GlassProgress.swift",34      "sha256" : "875a7c42fc4ad2de1607e5c07187bd8145f22c8cfb9169f715897a2c806dc62f"35    }36  ],37  "frameworks" : [3839  ],40  "id" : "glass-progress",41  "kind" : "native-wrapper",42  "license" : "MIT",43  "minimumOS" : {44    "iOS" : "26.0",45    "iPadOS" : "26.0",46    "macOS" : "26.0"47  },48  "name" : "GlassProgress",49  "platforms" : [50    "iOS",51    "iPadOS",52    "macOS"53  ],54  "schemaVersion" : 1,55  "sha256" : "75eb944d8c60450066f1dbff52c4ddece49606b32c158dbb58b893a996b8b3e0",56  "symbols" : [57    "GlassProgressStyle",58    "GlassProgressMath",59    "GlassProgress"60  ],61  "version" : "1.0.0"62}63
Files main
Menu

Theme