·swiftui-async-button
</>

swiftui-async-button

dean151/buttonkit

将 ButtonKit 的 AsyncButton 用于启动任务、调用 async/await、使用 do/catch 或需要内置加载/进度/错误反馈的 SwiftUI 按钮操作。当替换自定义按钮+任务包装器或当按钮操作可以抛出或异步时触发。

0安装·0热度·@dean151

安装

$npx skills add https://github.com/dean151/buttonkit --skill swiftui-async-button

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

详情

分类
</>开发工具
来源
user
收录时间
2026-02-05

相关 Skills

暂无