{
  "accessibility" : [
    "VoiceOver reads the severity word, the title and the message as one element; the symbol is hidden because the word says the same thing.",
    "The action and dismiss buttons are separate elements with labels and the minimum hit target; the action is underlined so that it is recognisable without colour.",
    "Text wraps and follows Dynamic Type; the symbol aligns to the top so long messages stay readable.",
    "For an error that appears while the user is elsewhere on screen, also post an announcement or move focus: the banner does not announce itself."
  ],
  "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-foundation",
      "version" : "1.1.0"
    }
  ],
  "description" : "Inline information, success, warning or error message with icon, text and dismissal.",
  "examples" : [
    {
      "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassBannerExample: GlassExample {\n    public static let componentID = \"glass-banner\"\n    @State private var showsWarning = true\n    @State private var retryCount = 0\n\n    public init() {}\n\n    public var body: some View {\n        ScrollView {\n            VStack(spacing: 12) {\n                GlassBanner(.information, title: \"Maintenance on Sunday\", message: \"The sample service will be read-only from 2:00 to 4:00.\")\n                GlassBanner(.success, title: \"Payment received\")\n                if showsWarning {\n                    GlassBanner(\n                        .warning,\n                        title: \"Your card expires soon\",\n                        message: \"Update your payment method before the end of the month to avoid an interruption.\",\n                        action: GlassBannerAction(\"Update card\") { showsWarning = false },\n                        onDismiss: { showsWarning = false }\n                    )\n                }\n                GlassBanner(\n                    .error,\n                    verbatim: \"Synchronisation failed (attempt \\(retryCount + 1))\",\n                    message: \"The server did not answer.\",\n                    action: GlassBannerAction(\"Retry\") { retryCount += 1 }\n                )\n            }\n            .padding()\n        }\n    }\n}\n\n#Preview(\"GlassBanner\") { GlassBannerExample().glassTheme(.emerald) }\n",
      "title" : "GlassBanner example"
    }
  ],
  "files" : [
    {
      "bytes" : 9141,
      "path" : "Components/Feedback/GlassBanner.swift",
      "sha256" : "8c46d51d07cbbda879b03d2ac108bcfcca66d04785688f8b9411c717c1bc22ea"
    }
  ],
  "frameworks" : [

  ],
  "id" : "glass-banner",
  "kind" : "content-component",
  "license" : "MIT",
  "minimumOS" : {
    "iOS" : "26.0",
    "iPadOS" : "26.0",
    "macOS" : "26.0"
  },
  "name" : "GlassBanner",
  "platforms" : [
    "iOS",
    "iPadOS",
    "macOS"
  ],
  "schemaVersion" : 1,
  "sha256" : "844d5941ce4cd958a8715781410377e2a0c1c788c74e7c164669ec49a852f24d",
  "symbols" : [
    "GlassBannerSeverity",
    "GlassBannerAction",
    "GlassBanner"
  ],
  "version" : "1.1.0"
}
