Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

searchbarsearchbar 开发

Agent Skill

searchbar 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

48,764

周安装

1,992

GitHub Stars

1

下载量

15,777
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:searchbar(searchbar 开发)
来源仓库:https://github.com/szpakkamil/searchbar
安装命令:
openclaw skills install searchbar
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install searchbar

简介

关于 SearchBar(可定制的 SwiftUI 搜索组件)的专家指导。当开发人员提到:(1) SearchBar、(2) SwiftUI 中的自定义搜索栏、(3) 搜索标记或建议、(4) 样式搜索栏(玻璃、胶囊)、(5) 跨平台搜索(iOS、macOS、visionOS)、(6) 特定 SearchBar 修饰符(如 .searchBarStyle 或 .searchBarSuggestions)时使用。

SKILL.md

name
SearchBar
description
Expert guidance on SearchBar, a customizable SwiftUI search component. Use when developers mention: (1) SearchBar, (2) custom search bars in SwiftUI, (3) search tokens or suggestions, (4) styling search bars (glass, capsule), (5) cross-platform search (iOS, macOS, visionOS), (6) specific SearchBar modifiers like .searchBarStyle or .searchBarSuggestions.

SearchBar Skill

Overview

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.

Agent Behavior (Follow These Rules)

  1. 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).
  2. Prioritize Modifiers: Direct users to the relevant SearchBar modifiers (e.g., .searchBarStyle, .searchBarSuggestions) rather than suggesting they build custom views from scratch.
  3. Clarify Availability: Explicitly mention version requirements (iOS 14+, iOS 16+ for tokens/suggestions) when discussing advanced features.
  4. Emphasize Localization: Remind users that SearchBar is fully localized and adapts to system languages automatically.
  5. Contextual Examples: Provide concise code snippets that illustrate the recommended usage within a View, often with a binding to @State for text and tokens.
  6. Highlight 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).

Project Settings

  • Deployment Targets: iOS 14.0+, iPadOS 14.0+, macOS 11.0+, visionOS 1.0+.
  • Advanced Features: Tokens and Suggestions require iOS 16.0+, iPadOS 16.0+, visionOS 1.0+. (Suggestions also on macOS 15.0+).
  • Swift Version: Swift 5.9+.

Quick Decision Tree

  1. Setting up a basic search bar?

* Basic init and setup → references/SearchBar.md

  1. Customizing appearance?

* Changing colors, shape (capsule/rounded) → references/SearchBarStyle.md * Using "Glass" or "Solid" materials → references/SearchBarStyle.md * Changing the size/scale → references/SearchBarStyle.md * Custom icon → references/SearchBarModifiers.md (.searchBarIconView)

  1. Configuring behavior?

* Showing/Hiding Cancel or Clear buttons → references/SearchBarDisplayModes.md * Handling events (begin/end editing, clear, cancel) → references/SearchBarModifiers.md * Focus management → references/SearchBarModifiers.md (.searchBarIsFocused)

  1. Using advanced search features (iOS 16+/visionOS)?

* Adding filter tokens (capsules) → references/SearchBarData.md * Showing search suggestions → references/SearchBarData.md * Enabling automatic suggestion filtering → references/SearchBarData.md

Triage-First Playbook

  • "My search bar looks different on macOS."

* Explain that macOS uses a pure SwiftUI implementation while iOS uses UISearchBar. Styling is consistent but underlying implementation differs.

  • "Tokens/Suggestions are not showing up."

* Verify the deployment target is iOS 16.0+ or visionOS 1.0+. * Ensure the binding to tokens/suggestions is active and populated.

  • "How do I change the background color?"

* Use .searchBarStyle(..., backgroundColor: .red). See references/SearchBarStyle.md.

  • "I want to hide the cancel button."

* Use .searchBarCancelButtonDisplayMode(.never). See references/SearchBarDisplayModes.md.

  • "How do I make the search bar glass/transparent?"

* Use .searchBarMaterial(.glass). Note platform/version restrictions (iOS 26+). See references/SearchBarStyle.md.

Core Patterns Reference

Basic Setup

SearchBar(text: $text, prompt: "Search...")
    .searchBarStyle(.rounded)

Advanced Styling

SearchBar(text: $text)
    .searchBarStyle(.capsule, textColor: .white, tint: .blue, backgroundColor: .black.opacity(0.8))
    .searchBarMaterial(.glass) // iOS 26+ (Experimental/Future)

Tokens & Suggestions

SearchBar(text: $text)
    .searchBarCurrentTokens($tokens)
    .searchBarSuggestions($suggestions)
    .searchBarEnableAutomaticSuggestionsFiltering(true)

Event Handling

SearchBar(text: $text)
    .searchBarBeginEditingAction { print("Started") }
    .searchBarEndEditingAction { print("Ended") }
    .searchBarCancelButtonAction { print("Cancelled") }

Integration Quick Guide

SearchBar is integrated via Swift Package Manager.

  1. Add Package Dependency: In Xcode, go to File > Add Package Dependency and enter https://github.com/SzpakKamil/SearchBar.git.
  2. Import: import SearchBar in your Swift files.
  3. Deployment Targets: Ensure your project targets iOS 14.0+, macOS 11.0+, visionOS 1.0+.

For detailed setup, see references/SearchBar.md.

Reference Files

  • SearchBar.md - General overview, setup, and initialization.
  • SearchBarModifiers.md - Comprehensive list of all modifiers.
  • SearchBarStyle.md - Styling, materials, corner styles, and scale.
  • SearchBarDisplayModes.md - Cancel and Clear button behaviors.
  • SearchBarData.md - Search Tokens and Suggestions.
  • _index.md - Index of all topics.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

83%
按下载量换算13,095

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills