{
  "accessibility" : [
    "Rows are system list rows: selection, headers and badges are announced by the system; the list is fully keyboard navigable.",
    "Symbols are decorative; the title is always present.",
    "Search ignores case, accents and character width, and matches every word of the query in any order.",
    "Row titles wrap at large text sizes."
  ],
  "category" : "navigation",
  "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" : "NavigationSplitView sidebar with sections, selection, search and adaptive collapse.",
  "examples" : [
    {
      "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassSidebarExample: GlassExample {\n    public static let componentID = \"glass-sidebar\"\n    @State private var selection: String? = \"inbox\"\n    @State private var columnVisibility: NavigationSplitViewVisibility = .automatic\n\n    public init() {}\n\n    private let sections: [GlassSidebarSection<String>] = [\n        GlassSidebarSection(id: \"mailboxes\", title: \"Mailboxes\", items: [\n            GlassSidebarItem(id: \"inbox\", title: \"Inbox\", systemImage: \"tray\", badge: 12, keywords: [\"unread\"]),\n            GlassSidebarItem(id: \"drafts\", title: \"Drafts\", systemImage: \"doc\", badge: 2),\n            GlassSidebarItem(id: \"sent\", title: \"Sent\", systemImage: \"paperplane\"),\n            GlassSidebarItem(id: \"archive\", title: \"Archive\", systemImage: \"archivebox\"),\n        ]),\n        GlassSidebarSection(id: \"labels\", title: \"Labels\", items: [\n            GlassSidebarItem(id: \"travel\", title: \"Voyages et séjours\", systemImage: \"airplane\", keywords: [\"travel\", \"trips\"]),\n            GlassSidebarItem(id: \"receipts\", title: \"Reçus\", systemImage: \"receipt\", keywords: [\"receipts\"]),\n            GlassSidebarItem(id: \"long\", title: \"A label with a deliberately long name to check wrapping\", systemImage: \"tag\"),\n        ]),\n    ]\n\n    public var body: some View {\n        GlassSidebar(\"Mail\", sections: sections, selection: $selection, columnVisibility: $columnVisibility, searchPrompt: \"Search mailboxes\") { id in\n            if let id {\n                VStack(spacing: 12) {\n                    Text(verbatim: title(of: id)).font(.title2)\n                    Button(columnVisibility == .detailOnly ? \"Show sidebar\" : \"Hide sidebar\") {\n                        columnVisibility = columnVisibility == .detailOnly ? .all : .detailOnly\n                    }\n                }\n                .padding()\n                .navigationTitle(Text(verbatim: title(of: id)))\n            } else {\n                ContentUnavailableView(\"Select a mailbox\", systemImage: \"sidebar.left\")\n            }\n        }\n    }\n\n    private func title(of id: String) -> String {\n        sections.flatMap(\\.items).first { $0.id == id }?.title ?? id\n    }\n}\n\n#Preview(\"GlassSidebar\") { GlassSidebarExample() }\n",
      "title" : "GlassSidebar example"
    }
  ],
  "files" : [
    {
      "bytes" : 9115,
      "path" : "Navigation/Navigation/GlassSidebar.swift",
      "sha256" : "292ee5b8ca3818f660ff7afd92acc74e006b77daf6e49337c94a51ffd25198c7"
    }
  ],
  "frameworks" : [

  ],
  "id" : "glass-sidebar",
  "kind" : "native-wrapper",
  "license" : "MIT",
  "minimumOS" : {
    "iOS" : "26.0",
    "iPadOS" : "26.0",
    "macOS" : "26.0"
  },
  "name" : "GlassSidebar",
  "platforms" : [
    "iOS",
    "iPadOS",
    "macOS"
  ],
  "schemaVersion" : 1,
  "sha256" : "d766dec44c1b64aa2f3ebcd20c1655249df8b55daedbf825781309433841957a",
  "symbols" : [
    "GlassSidebarItem",
    "GlassSidebarSection",
    "GlassSidebarFilter",
    "GlassSidebar"
  ],
  "version" : "1.1.0"
}
