Repository Public MIT
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 "Initial release."12 ],13 "date" : "2026-12-02",14 "version" : "1.0.0"15 }16 ],17 "dependencies" : [18 {19 "id" : "glass-foundation",20 "version" : "1.0.0"21 }22 ],23 "description" : "System popover with anchoring, compact adaptation and an accessible close action.",24 "examples" : [25 {26 "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",27 "title" : "GlassPopover example"28 }29 ],30 "files" : [31 {32 "bytes" : 6002,33 "path" : "Components/Containers/GlassPopover.swift",34 "sha256" : "8874783cc28a15f227b10894478d484c67bceb479697d6c1189524d3ba29d6b5"35 }36 ],37 "frameworks" : [3839 ],40 "id" : "glass-popover",41 "kind" : "native-wrapper",42 "license" : "MIT",43 "minimumOS" : {44 "iOS" : "26.0",45 "iPadOS" : "26.0",46 "macOS" : "26.0"47 },48 "name" : "GlassPopover",49 "platforms" : [50 "iOS",51 "iPadOS",52 "macOS"53 ],54 "schemaVersion" : 1,55 "sha256" : "e3fc984bfe8da2ceb42e2ec43e32c460bbd6d6236d2f44930ddfa32675bb9c3c",56 "symbols" : [57 "GlassPopoverAdaptation"58 ],59 "version" : "1.0.0"60}61