{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"colorpicker-swiftui","type":"registry:item","title":"ColorPicker","description":"A SwiftUI control that opens the system color interface and binds the chosen color to app state.","files":[{"path":"snippets/colorpicker-swiftui.tsx","content":"import { useState } from \"react\";\nimport { Host, ColorPicker } from \"@expo/ui/swift-ui\";\n\nexport default function ColorPickerExample() {\n  const [color, setColor] = useState(\"#FF6347\");\n\n  // A color picker fills the width it is given, so `matchContents` collapses it.\n  return (\n    <Host style={{ flex: 1 }}>\n      <ColorPicker label=\"Select a color\" selection={color} onSelectionChange={setColor} />\n    </Host>\n  );\n}\n","type":"registry:file","target":"~/snippets/colorpicker-swiftui.tsx"}],"author":"expo","dependencies":["@expo/ui"]}