·swiftui-layout-components
</>

swiftui-layout-components

使用堆栈、网格、列表、滚动视图、表单和控件构建 SwiftUI 布局。涵盖 VStack/HStack/ZStack、LazyVGrid/LazyHGrid、包含部分和滑动操作的列表、带有 ScrollViewReader 的 ScrollView、带有验证的表单、Toggle/Picker/Slider、.searchable 和覆盖模式。在构建数据驱动布局、集合视图、设置屏幕、搜索界面或瞬态覆盖 UI 时使用。

41安装·17热度·@dpearson2699

安装

$npx skills add https://github.com/dpearson2699/swift-ios-skills --skill swiftui-layout-components

如何安装 swiftui-layout-components

通过命令行快速安装 swiftui-layout-components AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/dpearson2699/swift-ios-skills --skill swiftui-layout-components
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:dpearson2699/swift-ios-skills。

SKILL.md

查看原文

Layout and component patterns for SwiftUI apps targeting iOS 26+ with Swift 6.2. Covers stack and grid layouts, list patterns, scroll views, forms, controls, search, and overlays. Patterns are backward-compatible to iOS 17 unless noted.

Use VStack, HStack, and ZStack for small, fixed-size content. They render all children immediately.

Use LazyVStack and LazyHStack inside ScrollView for large or dynamic collections. They create child views on demand as they scroll into view.

使用堆栈、网格、列表、滚动视图、表单和控件构建 SwiftUI 布局。涵盖 VStack/HStack/ZStack、LazyVGrid/LazyHGrid、包含部分和滑动操作的列表、带有 ScrollViewReader 的 ScrollView、带有验证的表单、Toggle/Picker/Slider、.searchable 和覆盖模式。在构建数据驱动布局、集合视图、设置屏幕、搜索界面或瞬态覆盖 UI 时使用。 来源:dpearson2699/swift-ios-skills。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill swiftui-layout-components
分类
</>开发工具
认证
收录时间
2026-03-09
更新时间
2026-03-10

Browse more skills from dpearson2699/swift-ios-skills

快速解答

什么是 swiftui-layout-components?

使用堆栈、网格、列表、滚动视图、表单和控件构建 SwiftUI 布局。涵盖 VStack/HStack/ZStack、LazyVGrid/LazyHGrid、包含部分和滑动操作的列表、带有 ScrollViewReader 的 ScrollView、带有验证的表单、Toggle/Picker/Slider、.searchable 和覆盖模式。在构建数据驱动布局、集合视图、设置屏幕、搜索界面或瞬态覆盖 UI 时使用。 来源:dpearson2699/swift-ios-skills。

如何安装 swiftui-layout-components?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/dpearson2699/swift-ios-skills --skill swiftui-layout-components 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/dpearson2699/swift-ios-skills