hig-components-layout by raintree-technology/apple-hig-skills
npx skills add https://github.com/raintree-technology/apple-hig-skills --skill hig-components-layout提问前请检查 .claude/apple-design-context.md。利用现有上下文,仅询问未涵盖的信息。
层级化组织。 将信息从宽泛的类别结构到具体细节。侧边栏用于顶层部分,列表用于可浏览的项目,详情视图用于单个内容。
使用标准导航模式。 标签栏用于同级部分间的扁平导航(iPhone)。侧边栏用于深层级导航(iPad、Mac)。使模式与信息架构和平台相匹配。
适应屏幕尺寸。 iPad 上的三列布局在 iPhone 上折叠为单列。使用尺寸类别和自适应 API(如 NavigationSplitView)实现自动适应。
支持 iPad 多任务处理。 优雅响应分屏视图、侧拉和台前调度。测试所有分屏比例和尺寸类别转换。
在 visionOS 上保持空间一致性。 共享空间中的窗口、体积和装饰元素。位置应可预测。使用装饰元素放置工具栏和控件,避免遮挡内容。
使用滚动视图处理溢出内容。 为离散内容单元启用分页。在适当位置支持下拉刷新。尊重安全区域。
保持导航可预测。 用户应始终知道自己在哪、如何到达以及如何返回。使用返回按钮、面包屑导航和清晰的部分标题。
优先使用系统组件。 UINavigationController、UISplitViewController、NavigationSplitView 和 TabView 提供了内置的自适应性、可访问性和状态恢复功能。
| 参考 | 主题 |
|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 关键内容 |
|---|
| sidebars.md | 侧边栏 | 源列表、选择状态、可折叠部分、iPad/Mac 模式 |
| column-views.md | 列视图 | Finder 风格浏览、通过列进行渐进式展开 |
| outline-views.md | 大纲视图 | 可展开的层级结构、展开三角形、树状结构 |
| split-views.md | 拆分视图 | 两列/三列布局、NavigationSplitView、自适应折叠 |
| tab-views.md | 标签视图 | 分段标签、页面式标签、macOS 标签分组 |
| tab-bars.md | 标签栏 | 底部标签栏(iOS)、徽章计数、最大标签数 |
| scroll-views.md | 滚动视图 | 分页、滚动指示器、内容内边距、下拉刷新 |
| windows.md | 窗口 | macOS/visionOS 窗口管理、调整大小、全屏、状态恢复 |
| panels.md | 面板 | 检查器面板、实用工具面板、浮动面板、macOS 惯例 |
| lists-and-tables.md | 列表和表格 | 普通/分组/内嵌分组样式、滑动操作、分区标题 |
| boxes.md | 框 | 内容分组容器、带标签的框、macOS 分组 |
| ornaments.md | 装饰元素 | visionOS 工具栏附件、定位、可见性 |
| 应用结构 | 推荐模式 | 平台适配 |
|---|---|---|
| 3-5 个同级顶层部分 | 标签栏 | iPhone:底部标签栏。iPad:侧边栏(.sidebarAdaptable,iPadOS 18+)。Mac:侧边栏或工具栏标签 |
| 深层级内容 | 侧边栏 + NavigationSplitView | iPhone:单列堆栈。iPad:两列/三列。Mac:完整多列 |
| 深层文件/文件夹树 | 列视图 | Mac:Finder 风格。iPad:自适应。iPhone:推送导航 |
| 带详情的扁平列表 | 拆分视图(两列) | iPhone:推送/弹出堆栈。iPad/Mac:主列 + 详情列 |
| 基于文档并带检查器 | 窗口 + 面板 | Mac:带检查器的主窗口。iPad:表单或弹出窗口 |
| 带工具的空间应用 | 窗口 + 装饰元素 | visionOS:窗口上的装饰元素。其他平台:工具栏 |
由 Raintree Technology 构建 · 更多开发者工具
每周安装量
80
仓库
GitHub 星标数
31
首次出现
2026年2月15日
安全审计
安装于
opencode78
github-copilot76
codex75
cursor75
kimi-cli74
amp74
Check for .claude/apple-design-context.md before asking questions. Use existing context and only ask for information not already covered.
Organize hierarchically. Structure information from broad categories to specific details. Sidebars for top-level sections, lists for browsable items, detail views for individual content.
Use standard navigation patterns. Tab bars for flat navigation between peer sections (iPhone). Sidebars for deep hierarchical navigation (iPad, Mac). Match the pattern to the information architecture and platform.
Adapt to screen size. Three-column on iPad collapses to single-column on iPhone. Use size classes and adaptive APIs (NavigationSplitView) for automatic adaptation.
Support multitasking on iPad. Respond gracefully to Split View, Slide Over, and Stage Manager. Test at every split ratio and size class transition.
Maintain spatial consistency on visionOS. Windows, volumes, and ornaments in shared space. Position predictably. Use ornaments for toolbars and controls without occluding content.
Use scroll views for overflow content. Enable paging for discrete content units. Support pull-to-refresh where appropriate. Respect safe areas.
Keep navigation predictable. Users should always know where they are, how they got there, and how to go back. Use back buttons, breadcrumbs, and clear section titles.
Prefer system components. UINavigationController, UISplitViewController, NavigationSplitView, and TabView provide built-in adaptivity, accessibility, and state restoration.
| Reference | Topic | Key content |
|---|---|---|
| sidebars.md | Sidebars | Source lists, selection state, collapsible sections, iPad/Mac patterns |
| column-views.md | Column Views | Finder-style browsing, progressive disclosure through columns |
| outline-views.md | Outline Views | Expandable hierarchies, disclosure triangles, tree structures |
| split-views.md | Split Views | Two/three column layouts, NavigationSplitView, adaptive collapse |
| tab-views.md | Tab Views | Segmented tabs, page-style tabs, macOS tab grouping |
| App Structure | Recommended Pattern | Platform Adaptation |
|---|---|---|
| 3-5 peer top-level sections | Tab Bar | iPhone: bottom tab bar. iPad: sidebar (.sidebarAdaptable, iPadOS 18+). Mac: sidebar or toolbar tabs |
| Deep hierarchical content | Sidebar + NavigationSplitView | iPhone: single column stack. iPad: two/three columns. Mac: full multi-column |
| Deep file/folder tree | Column View | Mac: Finder-style. iPad: adaptable. iPhone: push navigation |
| Flat list with detail | Split View (two column) | iPhone: push/pop stack. iPad/Mac: primary + detail columns |
| Document-based with inspectors | Window + Panels | Mac: main window with inspector. iPad: sheet or popover |
| Spatial app with tools | Window + Ornaments | visionOS: ornaments on window. Other platforms: toolbars |
Built byRaintree Technology · More developer tools
Weekly Installs
80
Repository
GitHub Stars
31
First Seen
Feb 15, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode78
github-copilot76
codex75
cursor75
kimi-cli74
amp74
前端设计技能指南:避免AI垃圾美学,打造独特生产级界面
49,900 周安装
Shopware 6 最佳实践指南:22类77条规则,助力电商插件开发与性能优化
177 周安装
ISO 27001信息安全经理:自动化ISMS实施与医疗合规风险评估工具
174 周安装
Matplotlib 最佳实践指南:Python 数据可视化、绘图技巧与图表优化
178 周安装
Ensembl 数据库查询与基因组分析指南 | 基因注释、序列检索、变异分析
178 周安装
头脑风暴助手 - 使用Gemini AI系统生成创意想法,支持SCAMPER、六顶思考帽等方法
176 周安装
EDOT Java 插桩指南:使用 Elastic OpenTelemetry Java 代理实现应用可观测性
181 周安装
| tab-bars.md | Tab Bars | Bottom tab bars (iOS), badge counts, max tab count |
| scroll-views.md | Scroll Views | Paging, scroll indicators, content insets, pull-to-refresh |
| windows.md | Windows | macOS/visionOS window management, sizing, full-screen, restoration |
| panels.md | Panels | Inspector panels, utility panels, floating panels, macOS conventions |
| lists-and-tables.md | Lists and Tables | Plain/grouped/inset-grouped styles, swipe actions, section headers |
| boxes.md | Boxes | Content grouping containers, labeled boxes, macOS grouping |
| ornaments.md | Ornaments | visionOS toolbar attachments, positioning, visibility |