SPB Git

Repository Public MIT

manifest.json 2.9 KB 68 lines json

1{2  "accessibility" : [3    "A real popover is dismissed by tapping outside, by Escape and by the VoiceOver escape gesture; all are the system's.",4    "An adapted popover has no outside area: the added close button uses the system close role (symbol and localised label supplied by the system) and answers Escape on a hardware keyboard.",5    "The title carries the header trait."6  ],7  "category" : "containers",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" : "System popover with anchoring, compact adaptation and an accessible close action.",31  "examples" : [32    {33      "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassPopoverExample: GlassExample {\n    public static let componentID = \"glass-popover\"\n    @State private var showsDetails = false\n    @State private var showsHelp = false\n\n    public init() {}\n\n    public var body: some View {\n        HStack(spacing: 24) {\n            GlassIconButton(systemImage: \"info\", accessibilityLabel: \"Price details\") { showsDetails = true }\n                .glassPopover(isPresented: $showsDetails, title: \"Price details\", arrowEdge: .top, compactAdaptation: .popover) {\n                    Text(\"Sample price, taxes included.\")\n                        .padding()\n                        .frame(minWidth: 220, alignment: .leading)\n                }\n            GlassButton(\"Help\", systemImage: \"questionmark.circle\") { showsHelp = true }\n                .glassPopover(isPresented: $showsHelp, title: \"Help\", compactAdaptation: .sheet) {\n                    Text(\"On a compact width this popover becomes a sheet with a close button.\")\n                        .padding()\n                        .frame(maxWidth: .infinity, alignment: .leading)\n                }\n        }\n        .padding()\n    }\n}\n\n#Preview(\"GlassPopover\") { GlassPopoverExample() }\n",34      "title" : "GlassPopover example"35    }36  ],37  "files" : [38    {39      "bytes" : 6002,40      "path" : "Components/Containers/GlassPopover.swift",41      "sha256" : "8874783cc28a15f227b10894478d484c67bceb479697d6c1189524d3ba29d6b5"42    }43  ],44  "frameworks" : [4546  ],47  "id" : "glass-popover",48  "kind" : "native-wrapper",49  "license" : "MIT",50  "minimumOS" : {51    "iOS" : "26.0",52    "iPadOS" : "26.0",53    "macOS" : "26.0"54  },55  "name" : "GlassPopover",56  "platforms" : [57    "iOS",58    "iPadOS",59    "macOS"60  ],61  "schemaVersion" : 1,62  "sha256" : "e3fc984bfe8da2ceb42e2ec43e32c460bbd6d6236d2f44930ddfa32675bb9c3c",63  "symbols" : [64    "GlassPopoverAdaptation"65  ],66  "version" : "1.1.0"67}68
Files main
Menu

Theme