{
  "accessibility" : [
    "The title has the header trait. The side panel's buttons are labelled \"Collapse\" / \"Expand\" and \"Close\".",
    "Result rows are buttons combining title and subtitle; the selected row has the `.isSelected` trait and a checkmark.",
    "The sheet keeps the system's behaviour (drag indicator, VoiceOver detent actions, keyboard avoidance).",
    "With Reduce Transparency the side panel becomes an opaque themed surface."
  ],
  "category" : "maps",
  "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" : "Extensible results panel that keeps the map behind it interactive.",
  "examples" : [
    {
      "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassMapPanelExample: GlassExample {\n    public static let componentID = \"glass-map-panel\"\n    @State private var isPresented = false\n    @State private var detent = GlassMapPanelDetent.half\n    @State private var selection: String?\n    @State private var query = \"\"\n    @State private var engine = SampleMapEngine()\n\n    /// Fictitious results.\n    private let results = [\n        GlassMapResult(id: \"1\", title: \"Café Exemple\", subtitle: \"Sample data · café\", systemImage: \"cup.and.saucer.fill\", detail: \"120 m\"),\n        GlassMapResult(id: \"2\", title: \"Bibliothèque fictive\", subtitle: \"Sample data · library\", systemImage: \"books.vertical.fill\", detail: \"350 m\"),\n        GlassMapResult(id: \"3\", title: \"A place with a very long name that wraps over several lines in a narrow panel\", subtitle: \"Sample data · 1.2 km\"),\n        GlassMapResult(id: \"4\", title: \"مقهى تجريبي\", subtitle: \"Sample data · 2 km\", systemImage: \"cup.and.saucer\"),\n        GlassMapResult(id: \"5\", title: \"Parc d’essai\", subtitle: \"Sample data · 2.4 km\", systemImage: \"tree\"),\n    ]\n\n    private var filteredResults: [GlassMapResult] {\n        let trimmed = query.trimmingCharacters(in: .whitespaces)\n        return trimmed.isEmpty ? results : results.filter { $0.title.localizedStandardContains(trimmed) }\n    }\n\n    public init() {}\n\n    public var body: some View {\n        GlassMapPanel(\"Nearby\", isPresented: $isPresented, detent: $detent) {\n            SampleMapBackdrop(heading: engine.heading ?? 0, zoom: engine.zoomScale)\n                .overlay(alignment: .topTrailing) {\n                    // The map and its controls stay usable while the panel is open.\n                    GlassMapControls(engine: engine)\n                        .padding()\n                }\n                .overlay(alignment: .bottomTrailing) {\n                    GlassButton(isPresented ? \"Hide results\" : \"Show results\", systemImage: \"list.bullet\") {\n                        isPresented.toggle()\n                    }\n                    .padding()\n                }\n        } content: {\n            VStack(alignment: .leading, spacing: 12) {\n                TextField(\"Search sample places\", text: $query)\n                    .textFieldStyle(.roundedBorder)\n                GlassMapResultList(results: filteredResults, selection: selection) { result in\n                    selection = result.id\n                    detent = .peek\n                }\n            }\n        }\n    }\n}\n\n#Preview(\"GlassMapPanel\") { GlassMapPanelExample().glassTheme(.ocean) }\n",
      "title" : "GlassMapPanel example"
    }
  ],
  "files" : [
    {
      "bytes" : 20253,
      "path" : "Maps/Maps/GlassMapPanel.swift",
      "sha256" : "603a342b8ff6f8a1045e164bf1588af45ff0ce2c88a3f71464c6acfd4c490cb0"
    }
  ],
  "frameworks" : [

  ],
  "id" : "glass-map-panel",
  "kind" : "native-wrapper",
  "license" : "MIT",
  "minimumOS" : {
    "iOS" : "26.0",
    "iPadOS" : "26.0",
    "macOS" : "26.0"
  },
  "name" : "GlassMapPanel",
  "platforms" : [
    "iOS",
    "iPadOS",
    "macOS"
  ],
  "schemaVersion" : 1,
  "sha256" : "076c2a7480eeb0f7e5cdbeb6603d25103f569ffaacf45ca0e3dce0f10b20734e",
  "symbols" : [
    "GlassMapPanelDetent",
    "GlassMapPanelForm",
    "GlassMapPanelLayout",
    "GlassMapPanel",
    "GlassMapResult",
    "GlassMapResultList"
  ],
  "version" : "1.1.0"
}
