跳到正文
Skillpedia
界面(UI/UX)48k · #4813

hig-components-layout

它能做什么

这个工具可以帮你按照 Apple 的设计规范整理应用中的信息。它会建议如何组织菜单、列表和页面,让用户能够轻松、直观地导航,并适配不同的屏幕尺寸(手机、平板、电脑)。

适用场景

  • ✓规划一个新应用的导航结构时。
  • ✓让应用在 iPhone 和 iPad 上都有良好表现时。
  • ✓希望应用遵循 Apple 的视觉和易用性标准时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hig-components-layout/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hig-components-layout/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我想在平板上用侧边菜单,在手机上用底部标签栏来组织我的应用。请问该怎么做,才能遵循 Apple 的指南?”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具会分析你应用的结构,并基于 Apple 官方的建议,推荐最合适的导航模式(比如标签栏或侧边菜单),以及这些模式如何在不同屏幕尺寸下变化。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Apple HIG: Layout and Navigation Components

Check for .claude/apple-design-context.md before asking questions. Use existing context and only ask for information not already covered.

Key Principles

  1. Organize hierarchically. Structure information from broad categories to specific details. Sidebars for top-level sections, lists for browsable items, detail views for individual content.

  2. 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.

  3. Adapt to screen size. Three-column on iPad collapses to single-column on iPhone. Use size classes and adaptive APIs (NavigationSplitView) for automatic adaptation.

  4. Support multitasking on iPad. Respond gracefully to Split View, Slide Over, and Stage Manager. Test at every split ratio and size class transition.

  5. Maintain spatial consistency on visionOS. Windows, volumes, and ornaments in shared space. Position predictably. Use ornaments for toolbars and controls without occluding content.

  6. Use scroll views for overflow content. Enable paging for discrete content units. Support pull-to-refresh where appropriate. Respect safe areas.

  7. 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.

  8. Prefer system components. UINavigationController, UISplitViewController, NavigationSplitView, and TabView provide built-in adaptivity, accessibility, and state restoration.

Reference Index

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
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

Navigation Pattern Selection

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

Layout Adaptation Checklist

  • Compact width (iPhone portrait): Navigation collapses to single stack? Tab bars visible?
  • Regular width (iPad landscape, Mac): Navigation expands to sidebar + detail? Space used well?
  • Multitasking (iPad): Adapts at every split ratio? Works in Slide Over?
  • Accessibility: Supports Dynamic Type at all sizes? VoiceOver order logical?
  • Orientation: Content reflows between portrait and landscape?

…

常见问题

什么是“尺寸类别”(size classes)?

这是描述可用屏幕空间大小(小、中、大)的分类,能帮助应用自动调整布局。

什么是“层级式导航”(hierarchical navigation)?

就是把信息分成多个层级,像组织架构图一样,通过菜单和子菜单从概括走到具体内容。

“iPad 多任务”是什么意思?

指应用在 iPad 屏幕分屏与其他应用同时使用,或在浮动窗口中显示时,依然能正常工作的能力。

详情

作者的原始描述

Apple Human Interface Guidelines for layout and navigation components.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4813
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能