Repository Public MIT
1{2 "accessibility" : [3 "Symbol and text form one element with the \"updates frequently\" trait; the symbol is decorative.",4 "A change of label is announced with `AccessibilityNotification.Announcement` at low priority, so it never interrupts speech in progress. Blank and unchanged labels are not announced.",5 "The pulse is a symbol effect that is disabled with Reduce Motion (real or simulated)."6 ],7 "category" : "ai",8 "changelog" : [9 {10 "changes" : [11 "Release 1.1.0: see the project changelog."12 ],13 "date" : "2026-12-03",14 "version" : "1.1.0"15 },16 {17 "changes" : [18 "Initial release."19 ],20 "date" : "2026-12-02",21 "version" : "1.0.0"22 }23 ],24 "dependencies" : [25 {26 "id" : "glass-foundation",27 "version" : "1.1.0"28 }29 ],30 "description" : "Explicit activity indicator with a reduced-motion form; it never shows presumed reasoning.",31 "examples" : [32 {33 "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassThinkingIndicatorExample: GlassExample {\n public static let componentID = \"glass-thinking-indicator\"\n\n /// Fictitious activity labels, written by the host — never text coming from a model.\n private let stages: [(kind: GlassActivityKind, label: String)] = [\n (.thinking, \"Preparing the sample answer\"),\n (.searching, \"Searching the sample library\"),\n (.reading, \"Reading 3 sample documents\"),\n (.writing, \"Writing the summary\"),\n (.waiting, \"Waiting for your confirmation\"),\n ]\n @State private var stage = 0\n\n public init() {}\n\n public var body: some View {\n VStack(alignment: .leading, spacing: 16) {\n Text(\"Sample data · simulated activity\")\n .font(.caption)\n .foregroundStyle(.secondary)\n\n GlassThinkingIndicator(stages[stage].kind, label: stages[stage].label)\n GlassButton(\"Next activity\", systemImage: \"forward.end\") {\n stage = (stage + 1) % stages.count\n }\n\n Divider()\n ForEach(stages.indices, id: \\.self) { index in\n GlassThinkingIndicator(stages[index].kind, label: stages[index].label, announcesChanges: false)\n }\n GlassThinkingIndicator(.custom(systemImage: \"arrow.down.circle\"), label: \"Downloading the sample model, which has a long label that wraps on narrow screens\", announcesChanges: false)\n GlassThinkingIndicator(announcesChanges: false)\n GlassThinkingIndicator(.waiting, label: \"Plain style, for a status line\", announcesChanges: false, style: .plain)\n\n Divider()\n Text(\"Reduce Motion (simulated): static symbol\")\n .font(.caption)\n GlassThinkingIndicator(.searching, label: \"Searching the sample library\", announcesChanges: false)\n .glassSimulatedAccessibility(reduceMotion: true)\n }\n .padding()\n }\n}\n\n#Preview(\"GlassThinkingIndicator\") { GlassThinkingIndicatorExample().glassTheme(.crystal) }\n",34 "title" : "GlassThinkingIndicator example"35 }36 ],37 "files" : [38 {39 "bytes" : 7697,40 "path" : "AI/AI/GlassThinkingIndicator.swift",41 "sha256" : "30f79650bfba8c0b4d837fe2b9f2d27df01debaa2d04ebdf17c140283449357e"42 }43 ],44 "frameworks" : [4546 ],47 "id" : "glass-thinking-indicator",48 "kind" : "content-component",49 "license" : "MIT",50 "minimumOS" : {51 "iOS" : "26.0",52 "iPadOS" : "26.0",53 "macOS" : "26.0"54 },55 "name" : "GlassThinkingIndicator",56 "platforms" : [57 "iOS",58 "iPadOS",59 "macOS"60 ],61 "schemaVersion" : 1,62 "sha256" : "6daa2b481ae49ffe7d71575a068cf634b72ebda9359869e50045780040ed370f",63 "symbols" : [64 "GlassActivityKind",65 "GlassActivityAnnouncement",66 "GlassThinkingIndicatorStyle",67 "GlassThinkingIndicator"68 ],69 "version" : "1.1.0"70}71