{
  "schemaVersion": "1.0",
  "item": {
    "slug": "searchbar",
    "name": "SearchBar",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/SzpakKamil/searchbar",
    "canonicalUrl": "https://clawhub.ai/SzpakKamil/searchbar",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/searchbar",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=searchbar",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/SearchBar.md",
      "references/SearchBarData.md",
      "references/SearchBarDisplayModes.md",
      "references/SearchBarModifiers.md",
      "references/SearchBarStyle.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/searchbar"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/searchbar",
    "agentPageUrl": "https://openagent3.xyz/skills/searchbar/agent",
    "manifestUrl": "https://openagent3.xyz/skills/searchbar/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/searchbar/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Overview",
        "body": "This skill provides expert guidance on SearchBar, a powerful and highly customizable SwiftUI component for creating native-feeling search experiences across iOS, iPadOS, macOS, and visionOS. It bridges the gap between UISearchBar (iOS/visionOS) and native SwiftUI views (macOS), offering a unified API for styling, behavior, and advanced features like search tokens and dynamic suggestions."
      },
      {
        "title": "Agent Behavior (Follow These Rules)",
        "body": "Identify Platform Targets: SearchBar behaves slightly differently on iOS/visionOS (wraps UISearchBar) vs. macOS (custom SwiftUI). Always check or ask for the target platform to provide accurate advice (e.g., specific material effects or token behaviors).\nPrioritize Modifiers: Direct users to the relevant SearchBar modifiers (e.g., .searchBarStyle, .searchBarSuggestions) rather than suggesting they build custom views from scratch.\nClarify Availability: Explicitly mention version requirements (iOS 14+, iOS 16+ for tokens/suggestions) when discussing advanced features.\nEmphasize Localization: Remind users that SearchBar is fully localized and adapts to system languages automatically.\nContextual Examples: Provide concise code snippets that illustrate the recommended usage within a View, often with a binding to @State for text and tokens.\nHighlight Cross-Platform: When possible, remind users of SearchBar's cross-platform consistency and how to handle platform-specific differences using #if os(...) directives if necessary (though the library handles most internally)."
      },
      {
        "title": "Project Settings",
        "body": "Deployment Targets: iOS 14.0+, iPadOS 14.0+, macOS 11.0+, visionOS 1.0+.\nAdvanced Features: Tokens and Suggestions require iOS 16.0+, iPadOS 16.0+, visionOS 1.0+. (Suggestions also on macOS 15.0+).\nSwift Version: Swift 5.9+."
      },
      {
        "title": "Quick Decision Tree",
        "body": "Setting up a basic search bar?\n\nBasic init and setup → references/SearchBar.md\n\n\n\nCustomizing appearance?\n\nChanging colors, shape (capsule/rounded) → references/SearchBarStyle.md\nUsing \"Glass\" or \"Solid\" materials → references/SearchBarStyle.md\nChanging the size/scale → references/SearchBarStyle.md\nCustom icon → references/SearchBarModifiers.md (.searchBarIconView)\n\n\n\nConfiguring behavior?\n\nShowing/Hiding Cancel or Clear buttons → references/SearchBarDisplayModes.md\nHandling events (begin/end editing, clear, cancel) → references/SearchBarModifiers.md\nFocus management → references/SearchBarModifiers.md (.searchBarIsFocused)\n\n\n\nUsing advanced search features (iOS 16+/visionOS)?\n\nAdding filter tokens (capsules) → references/SearchBarData.md\nShowing search suggestions → references/SearchBarData.md\nEnabling automatic suggestion filtering → references/SearchBarData.md"
      },
      {
        "title": "Triage-First Playbook",
        "body": "\"My search bar looks different on macOS.\"\n\nExplain that macOS uses a pure SwiftUI implementation while iOS uses UISearchBar. Styling is consistent but underlying implementation differs.\n\n\n\"Tokens/Suggestions are not showing up.\"\n\nVerify the deployment target is iOS 16.0+ or visionOS 1.0+.\nEnsure the binding to tokens/suggestions is active and populated.\n\n\n\"How do I change the background color?\"\n\nUse .searchBarStyle(..., backgroundColor: .red). See references/SearchBarStyle.md.\n\n\n\"I want to hide the cancel button.\"\n\nUse .searchBarCancelButtonDisplayMode(.never). See references/SearchBarDisplayModes.md.\n\n\n\"How do I make the search bar glass/transparent?\"\n\nUse .searchBarMaterial(.glass). Note platform/version restrictions (iOS 26+). See references/SearchBarStyle.md."
      },
      {
        "title": "Basic Setup",
        "body": "SearchBar(text: $text, prompt: \"Search...\")\n    .searchBarStyle(.rounded)"
      },
      {
        "title": "Advanced Styling",
        "body": "SearchBar(text: $text)\n    .searchBarStyle(.capsule, textColor: .white, tint: .blue, backgroundColor: .black.opacity(0.8))\n    .searchBarMaterial(.glass) // iOS 26+ (Experimental/Future)"
      },
      {
        "title": "Tokens & Suggestions",
        "body": "SearchBar(text: $text)\n    .searchBarCurrentTokens($tokens)\n    .searchBarSuggestions($suggestions)\n    .searchBarEnableAutomaticSuggestionsFiltering(true)"
      },
      {
        "title": "Event Handling",
        "body": "SearchBar(text: $text)\n    .searchBarBeginEditingAction { print(\"Started\") }\n    .searchBarEndEditingAction { print(\"Ended\") }\n    .searchBarCancelButtonAction { print(\"Cancelled\") }"
      },
      {
        "title": "Integration Quick Guide",
        "body": "SearchBar is integrated via Swift Package Manager.\n\nAdd Package Dependency: In Xcode, go to File > Add Package Dependency and enter https://github.com/SzpakKamil/SearchBar.git.\nImport: import SearchBar in your Swift files.\nDeployment Targets: Ensure your project targets iOS 14.0+, macOS 11.0+, visionOS 1.0+.\n\nFor detailed setup, see references/SearchBar.md."
      },
      {
        "title": "Reference Files",
        "body": "SearchBar.md - General overview, setup, and initialization.\nSearchBarModifiers.md - Comprehensive list of all modifiers.\nSearchBarStyle.md - Styling, materials, corner styles, and scale.\nSearchBarDisplayModes.md - Cancel and Clear button behaviors.\nSearchBarData.md - Search Tokens and Suggestions.\n_index.md - Index of all topics."
      }
    ],
    "body": "SearchBar Skill\nOverview\n\nThis skill provides expert guidance on SearchBar, a powerful and highly customizable SwiftUI component for creating native-feeling search experiences across iOS, iPadOS, macOS, and visionOS. It bridges the gap between UISearchBar (iOS/visionOS) and native SwiftUI views (macOS), offering a unified API for styling, behavior, and advanced features like search tokens and dynamic suggestions.\n\nAgent Behavior (Follow These Rules)\nIdentify Platform Targets: SearchBar behaves slightly differently on iOS/visionOS (wraps UISearchBar) vs. macOS (custom SwiftUI). Always check or ask for the target platform to provide accurate advice (e.g., specific material effects or token behaviors).\nPrioritize Modifiers: Direct users to the relevant SearchBar modifiers (e.g., .searchBarStyle, .searchBarSuggestions) rather than suggesting they build custom views from scratch.\nClarify Availability: Explicitly mention version requirements (iOS 14+, iOS 16+ for tokens/suggestions) when discussing advanced features.\nEmphasize Localization: Remind users that SearchBar is fully localized and adapts to system languages automatically.\nContextual Examples: Provide concise code snippets that illustrate the recommended usage within a View, often with a binding to @State for text and tokens.\nHighlight Cross-Platform: When possible, remind users of SearchBar's cross-platform consistency and how to handle platform-specific differences using #if os(...) directives if necessary (though the library handles most internally).\nProject Settings\nDeployment Targets: iOS 14.0+, iPadOS 14.0+, macOS 11.0+, visionOS 1.0+.\nAdvanced Features: Tokens and Suggestions require iOS 16.0+, iPadOS 16.0+, visionOS 1.0+. (Suggestions also on macOS 15.0+).\nSwift Version: Swift 5.9+.\nQuick Decision Tree\n\nSetting up a basic search bar?\n\nBasic init and setup → references/SearchBar.md\n\nCustomizing appearance?\n\nChanging colors, shape (capsule/rounded) → references/SearchBarStyle.md\nUsing \"Glass\" or \"Solid\" materials → references/SearchBarStyle.md\nChanging the size/scale → references/SearchBarStyle.md\nCustom icon → references/SearchBarModifiers.md (.searchBarIconView)\n\nConfiguring behavior?\n\nShowing/Hiding Cancel or Clear buttons → references/SearchBarDisplayModes.md\nHandling events (begin/end editing, clear, cancel) → references/SearchBarModifiers.md\nFocus management → references/SearchBarModifiers.md (.searchBarIsFocused)\n\nUsing advanced search features (iOS 16+/visionOS)?\n\nAdding filter tokens (capsules) → references/SearchBarData.md\nShowing search suggestions → references/SearchBarData.md\nEnabling automatic suggestion filtering → references/SearchBarData.md\nTriage-First Playbook\n\"My search bar looks different on macOS.\"\nExplain that macOS uses a pure SwiftUI implementation while iOS uses UISearchBar. Styling is consistent but underlying implementation differs.\n\"Tokens/Suggestions are not showing up.\"\nVerify the deployment target is iOS 16.0+ or visionOS 1.0+.\nEnsure the binding to tokens/suggestions is active and populated.\n\"How do I change the background color?\"\nUse .searchBarStyle(..., backgroundColor: .red). See references/SearchBarStyle.md.\n\"I want to hide the cancel button.\"\nUse .searchBarCancelButtonDisplayMode(.never). See references/SearchBarDisplayModes.md.\n\"How do I make the search bar glass/transparent?\"\nUse .searchBarMaterial(.glass). Note platform/version restrictions (iOS 26+). See references/SearchBarStyle.md.\nCore Patterns Reference\nBasic Setup\nSearchBar(text: $text, prompt: \"Search...\")\n    .searchBarStyle(.rounded)\n\nAdvanced Styling\nSearchBar(text: $text)\n    .searchBarStyle(.capsule, textColor: .white, tint: .blue, backgroundColor: .black.opacity(0.8))\n    .searchBarMaterial(.glass) // iOS 26+ (Experimental/Future)\n\nTokens & Suggestions\nSearchBar(text: $text)\n    .searchBarCurrentTokens($tokens)\n    .searchBarSuggestions($suggestions)\n    .searchBarEnableAutomaticSuggestionsFiltering(true)\n\nEvent Handling\nSearchBar(text: $text)\n    .searchBarBeginEditingAction { print(\"Started\") }\n    .searchBarEndEditingAction { print(\"Ended\") }\n    .searchBarCancelButtonAction { print(\"Cancelled\") }\n\nIntegration Quick Guide\n\nSearchBar is integrated via Swift Package Manager.\n\nAdd Package Dependency: In Xcode, go to File > Add Package Dependency and enter https://github.com/SzpakKamil/SearchBar.git.\nImport: import SearchBar in your Swift files.\nDeployment Targets: Ensure your project targets iOS 14.0+, macOS 11.0+, visionOS 1.0+.\n\nFor detailed setup, see references/SearchBar.md.\n\nReference Files\nSearchBar.md - General overview, setup, and initialization.\nSearchBarModifiers.md - Comprehensive list of all modifiers.\nSearchBarStyle.md - Styling, materials, corner styles, and scale.\nSearchBarDisplayModes.md - Cancel and Clear button behaviors.\nSearchBarData.md - Search Tokens and Suggestions.\n_index.md - Index of all topics."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/SzpakKamil/searchbar",
    "publisherUrl": "https://clawhub.ai/SzpakKamil/searchbar",
    "owner": "SzpakKamil",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/searchbar",
    "downloadUrl": "https://openagent3.xyz/downloads/searchbar",
    "agentUrl": "https://openagent3.xyz/skills/searchbar/agent",
    "manifestUrl": "https://openagent3.xyz/skills/searchbar/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/searchbar/agent.md"
  }
}