{
  "accessibility" : [
    "Every toast is announced when shown (title, then message) through `AccessibilityNotification.Announcement`, so VoiceOver users hear it without moving focus.",
    "The symbol is decorative and hidden; the action and dismiss buttons are labelled and keep the minimum hit target.",
    "With Reduce Motion toasts fade instead of sliding. With Reduce Transparency the surface is opaque.",
    "Durations are never shorter than 2 seconds and default to 4 or 6 seconds."
  ],
  "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" : "Transient message with a bounded queue, duration, optional action and an accessibility announcement.",
  "examples" : [
    {
      "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassToastExample: GlassExample {\n    public static let componentID = \"glass-toast\"\n    @State private var toasts = GlassToastCenter(capacity: 3)\n    @State private var savedCount = 0\n    @State private var restored = false\n\n    public init() {}\n\n    public var body: some View {\n        VStack(spacing: 16) {\n            GlassButton(\"Save draft\", systemImage: \"tray.and.arrow.down\") {\n                savedCount += 1\n                // A stable identifier: saving twice replaces the toast instead of stacking a duplicate.\n                toasts.show(GlassToast(\"Draft saved (\\(savedCount))\", systemImage: \"checkmark.circle\", id: \"saved\"))\n            }\n            GlassButton(\"Delete message\", systemImage: \"trash\", role: .destructive) {\n                restored = false\n                toasts.show(GlassToast(\"Message deleted\", systemImage: \"trash\", action: GlassToastAction(\"Undo\") { restored = true }))\n            }\n            GlassButton(\"Show offline notice\", systemImage: \"wifi.slash\") {\n                toasts.show(.persistent(\"You are offline\", title: \"Connection\", systemImage: \"wifi.slash\", id: \"offline\"))\n            }\n            GlassButton(\"Dismiss all\") { toasts.dismissAll() }\n            Text(restored ? \"Message restored\" : \"\\(toasts.toasts.count) toasts on screen\")\n                .font(.callout)\n                .foregroundStyle(.secondary)\n        }\n        .padding()\n        .frame(maxWidth: .infinity, maxHeight: .infinity)\n        .glassToastHost(toasts)\n    }\n}\n\n#Preview(\"GlassToast\") { GlassToastExample() }\n",
      "title" : "GlassToast example"
    }
  ],
  "files" : [
    {
      "bytes" : 7438,
      "path" : "Components/Feedback/GlassToast.swift",
      "sha256" : "253f6a2931e0139956361f096515b9b7b171876367b98636ac47417c372738a4"
    },
    {
      "bytes" : 9258,
      "path" : "Components/Feedback/GlassToastCenter.swift",
      "sha256" : "127e4dc41b73014b37a361e621a9233197fa572902ff8b733c6d89d973287e35"
    }
  ],
  "frameworks" : [

  ],
  "id" : "glass-toast",
  "kind" : "custom-glass",
  "license" : "MIT",
  "minimumOS" : {
    "iOS" : "26.0",
    "iPadOS" : "26.0",
    "macOS" : "26.0"
  },
  "name" : "GlassToast",
  "platforms" : [
    "iOS",
    "iPadOS",
    "macOS"
  ],
  "schemaVersion" : 1,
  "sha256" : "1f7efebabd2703eb7c559ea7dfac500e018c6bdc03cf57001521d602b324fb4c",
  "symbols" : [
    "GlassToastPlacement",
    "GlassToastView",
    "GlassToastAction",
    "GlassToast",
    "GlassToastCenter"
  ],
  "version" : "1.1.0"
}
