{
  "accessibility" : [
    "The picker is a system control: label, current value, the list of options and keyboard navigation come from the system.",
    "Option labels built with `Label` keep their text for VoiceOver.",
    "Long option names wrap in the inline presentation and are shown in full in menus."
  ],
  "category" : "selection",
  "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" : "Generic picker over Hashable options, as a menu or a wheel depending on the platform.",
  "examples" : [
    {
      "code" : "import SwiftUI\nimport SPGlassKit\n\npublic struct GlassPickerExample: GlassExample {\n    public static let componentID = \"glass-picker\"\n\n    struct Plan: Hashable {\n        let name: String\n        let symbol: String\n    }\n\n    private static let plans = [\n        Plan(name: \"Starter\", symbol: \"leaf\"),\n        Plan(name: \"Team\", symbol: \"person.3\"),\n        Plan(name: \"Enterprise with a long name\", symbol: \"building.2\"),\n    ]\n\n    @State private var plan = GlassPickerExample.plans[0]\n    @State private var currency = \"CAD\"\n    @State private var hour = 9\n    @State private var priority = \"Normal\"\n\n    public init() {}\n\n    public var body: some View {\n        Form {\n            GlassPicker(\"Plan\", selection: $plan, options: Self.plans) { plan in\n                Label(plan.name, systemImage: plan.symbol)\n            }\n            GlassPicker(\"Currency\", selection: $currency, options: [\"CAD\", \"EUR\", \"JPY\", \"USD\"])\n            GlassPicker(\"Reminder hour\", selection: $hour, options: Array(6...22), presentation: .wheel) { hour in\n                \"\\(hour.formatted(.number.precision(.integerLength(2)))):00\"\n            }\n            GlassPicker(\"Priority\", selection: $priority, options: [\"Low\", \"Normal\", \"High\"], presentation: .inline)\n            GlassPicker(\"Region\", selection: .constant(\"Canada\"), options: [\"Canada\"])\n                .disabled(true)\n        }\n    }\n}\n\n#Preview(\"GlassPicker\") { GlassPickerExample() }\n",
      "title" : "GlassPicker example"
    }
  ],
  "files" : [
    {
      "bytes" : 6338,
      "path" : "Forms/Selection/GlassPicker.swift",
      "sha256" : "43fa8f538d612eb5c3d919af8ffad6e46eda6af0c2d73befbc597836ab762f38"
    }
  ],
  "frameworks" : [

  ],
  "id" : "glass-picker",
  "kind" : "native-wrapper",
  "license" : "MIT",
  "minimumOS" : {
    "iOS" : "26.0",
    "iPadOS" : "26.0",
    "macOS" : "26.0"
  },
  "name" : "GlassPicker",
  "platforms" : [
    "iOS",
    "iPadOS",
    "macOS"
  ],
  "schemaVersion" : 1,
  "sha256" : "db442501089433f9e4d703ca25e10d0116c9291d9117a6429a34c143a5fffc80",
  "symbols" : [
    "GlassPickerPresentation",
    "Resolved",
    "GlassPicker"
  ],
  "version" : "1.1.0"
}
