swiftui-async-button
✓將 ButtonKit 的 AsyncButton 用於啟動任務、調用 async/await、使用 do/catch 或需要內置加載/進度/錯誤反饋的 SwiftUI 按鈕操作。當替換自定義按鈕+任務包裝器或當按鈕操作可以拋出或異步時觸發。
SKILL.md
Overview Prefer ButtonKit AsyncButton over custom Button { Task { ... } } or manual do/catch wrappers to get standardized loading, progress, and error feedback for async or throwing actions.
External triggers When another UI event should trigger the same action (e.g., keyboard submit), assign an id to AsyncButton and use @Environment(\.triggerButton) to trigger it.
Progress If the action can report progress, use AsyncButton(progress: ...) and update the provided progress object. For supported progress types, styles, and demo patterns, read skills/swiftui-async-button/references/asyncbutton.md.
將 ButtonKit 的 AsyncButton 用於啟動任務、調用 async/await、使用 do/catch 或需要內置加載/進度/錯誤反饋的 SwiftUI 按鈕操作。當替換自定義按鈕+任務包裝器或當按鈕操作可以拋出或異步時觸發。 來源:dean151/buttonkit。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/dean151/buttonkit --skill swiftui-async-button- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-05
- 更新時間
- 2026-02-18
快速解答
什麼是 swiftui-async-button?
將 ButtonKit 的 AsyncButton 用於啟動任務、調用 async/await、使用 do/catch 或需要內置加載/進度/錯誤反饋的 SwiftUI 按鈕操作。當替換自定義按鈕+任務包裝器或當按鈕操作可以拋出或異步時觸發。 來源:dean151/buttonkit。
如何安裝 swiftui-async-button?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/dean151/buttonkit --skill swiftui-async-button 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/dean151/buttonkit
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-05