{
  "accessibility" : [
    "A tappable card is a single `Button`: VoiceOver reads its texts as one element with the button trait.",
    "A static card is a container; its header carries the header trait, so rotor navigation by headings works.",
    "Text uses theme fonts and wraps; the card grows with Dynamic Type."
  ],
  "category" : "containers",
  "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" : "Content container: opaque for dense content, glass when it floats above other content.",
  "examples" : [
    {
      "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassCardExample: GlassExample {\n    public static let componentID = \"glass-card\"\n    @State private var openCount = 0\n\n    public init() {}\n\n    public var body: some View {\n        ScrollView {\n            VStack(alignment: .leading, spacing: 16) {\n                GlassCard(\"Monthly rent\") {\n                    Text(\"1,450 $\").font(.title2)\n                    Text(\"Sample listing · 4½ · Plateau\").foregroundStyle(.secondary)\n                }\n                GlassCard {\n                    Text(\"A long description wraps on several lines and stays readable because the card is opaque: dense text never sits on glass.\")\n                } header: {\n                    Label(\"About this place\", systemImage: \"text.alignleft\")\n                } footer: {\n                    Text(\"Fictitious data\")\n                }\n                GlassCard {\n                    // Any view: a photo, a map, a drawing. Give it a height.\n                    Rectangle().fill(.tint.opacity(0.25)).frame(height: 120)\n                        .overlay { Image(systemName: \"building.2\").font(.largeTitle).foregroundStyle(.tint) }\n                        .accessibilityHidden(true)\n                } content: {\n                    Text(\"Two bedrooms · 74 m² · Balcony\").foregroundStyle(.secondary)\n                } header: {\n                    Text(\"Loft on the canal\")\n                } footer: {\n                    Label(\"Available 1 July\", systemImage: \"calendar\")\n                }\n                GlassCard(style: .floating, action: { openCount += 1 }) {\n                    Label(\"3 listings nearby\", systemImage: \"mappin.and.ellipse\")\n                    Text(\"Opened \\(openCount) times\").font(.caption)\n                }\n                .accessibilityHint(\"Opens the list\")\n            }\n            .padding()\n        }\n    }\n}\n\n#Preview(\"GlassCard\") { GlassCardExample().glassTheme(.ocean) }\n",
      "title" : "GlassCard example"
    }
  ],
  "files" : [
    {
      "bytes" : 9958,
      "path" : "Components/Containers/GlassCard.swift",
      "sha256" : "378dce583235c733fe2b017a93fbaaf5da35cf1f9abe7609b0e4c655b63af3a4"
    }
  ],
  "frameworks" : [

  ],
  "id" : "glass-card",
  "kind" : "content-component",
  "license" : "MIT",
  "minimumOS" : {
    "iOS" : "26.0",
    "iPadOS" : "26.0",
    "macOS" : "26.0"
  },
  "name" : "GlassCard",
  "platforms" : [
    "iOS",
    "iPadOS",
    "macOS"
  ],
  "schemaVersion" : 1,
  "sha256" : "292a9cd06620f2426bbe37a51140985b1fe261b6c2fefc4203eb2bbe0b5b118b",
  "symbols" : [
    "GlassCardStyle",
    "GlassCard"
  ],
  "version" : "1.1.0"
}
