Communitygithub.com

COTA-App/LandingPage

Apple 人机界面指南中的交互与用户体验模式。当用户询问关于应用启动、加载状态、拖放、搜索、设置、通知、模态、多任务处理、反馈、触觉、撤销重做、文件管理、数据输入、共享、协作、全屏、音频、视频、评分、打印、帮助或账户管理时,使用本技能。

LandingPage 是什么?

此技能提供了一套全面的 Apple 人机界面指南 (HIG) 交互模式知识库,旨在帮助开发者快速查找并应用 Apple 推荐的交互设计最佳实践。技能涵盖了从应用启动、用户引导、数据加载到模态使用、反馈机制、权限请求及账户管理等数十种常见场景,并提供了详细的参考文档索引和模式选择指南。开发者可以通过简单的自然语言查询获取特定模式(如“如何设计注销流程?”)的推荐方案、分步实现指南、平台差异说明及常见陷阱。此技能与 hig-foundations、hig-platforms、hig-components-layout 和 hig-components-content 技能紧密关联,共同构成了完整的 Apple HIG 知识体系。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/COTA-App/LandingPage/tree/HEAD/.claude/skills/hig-patterns

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Apple HIG: 交互模式

在提问前,请检查是否存在 .claude/apple-design-context.md 文件。应优先使用已有上下文,仅询问未涵盖的信息。

关键原则

  1. 最小化模态使用。 仅在需要强制吸引注意力、任务必须完成或放弃、或保存更改至关重要时才使用模态。优先选择非模态替代方案。

  2. 提供清晰的反馈。 每个操作都应产生可见、可听或触觉反馈。对于不确定的等待使用活动指示器,对于确定的进度使用进度条,对于物理确认使用触觉反馈。

  3. 支持撤销而非确认对话框。 破坏性操作应尽可能可逆。撤销几乎总是优于“你确定吗?”。

  4. 快速启动。 展示一个能够无缝过渡到首屏的启动屏幕。不要使用带有 Logo 的闪屏。恢复之前的应用状态。

  5. 延迟登录。 让用户在需要创建账户之前先探索应用。支持“通过 Apple 登录”和通行密钥。

  6. 保持引导简洁。 最多三个屏幕。允许用户跳过。通过渐进式披露和上下文提示进行教学。

  7. 使用渐进式披露。 首先展示基本信息,让用户深入查看细节。不要在一个屏幕上展示所有选项。

  8. 尊重用户注意力。 整合通知,最小化干扰,让用户控制提醒。切勿将通知用于营销。

参考索引

参考文档主题关键内容
charting-data.md图表数据数据可视化模式、无障碍图表、交互元素
collaboration-and-sharing.md协作与共享分享面板、活动视图、协作编辑、SharePlay
drag-and-drop.md拖放拖拽源、放置目标、弹簧加载、多项目拖拽、视觉反馈
entering-data.md输入数据文本字段、选择器、步进器、输入验证、键盘类型、自动填充
feedback.md反馈弹窗、操作面板、触觉模式、声音反馈、视觉指示器
file-management.md文件管理文档浏览器、文件提供程序、iCloud 集成、文档生命周期
going-full-screen.md全屏全屏过渡、沉浸内容、退出全屏
launching.md启动启动屏幕、状态恢复、冷启动与热启动
live-viewing-apps.md实况查看应用实况内容展示、实时更新、Live Activities、灵动岛
loading.md加载活动指示器、进度视图、骨架屏、懒加载、占位符
managing-accounts.md管理账户通过 Apple 登录、通行密钥、账户创建、凭据自动填充、账户删除
managing-notifications.md管理通知权限请求、分组、可操作通知、临时推送
modality.md模态面板、弹窗、弹出视图、全屏模态、何时使用每种类型
multitasking.md多任务处理iPad 分屏视图、侧拉、台前调度、响应式布局、Size Class 转换
offering-help.md提供帮助上下文提示、引导提示、帮助菜单、支持链接
onboarding.md引导欢迎屏幕、功能亮点、渐进式引导、跳过选项
playing-audio.md播放音频音频会话、后台音频、Now Playing、音频路由、中断
playing-haptics.md播放触觉Core Haptics、UIFeedbackGenerator、触觉模式、自定义触觉
playing-video.md播放视频视频播放器控件、画中画、AirPlay、全屏视频
printing.md打印打印对话框、页面设置、AirPrint 集成
ratings-and-reviews.md评分与评论SKStoreReviewController、时机、频率限制、应用内反馈
searching.md搜索搜索栏、建议、范围搜索、结果展示、最近搜索
settings.md设置应用内设置 vs 系统设置应用、偏好组织、开关、默认值
undo-and-redo.md撤销与重做摇动撤销、撤销/重做栈、多级撤销
workouts.md健身训练会话、实时指标、全天候显示、摘要、HealthKit

模式选择指南

用户目标推荐模式应避免
首次使用应用体验简洁引导(最多 3 屏)+ 渐进式披露冗长教程、强制注册
等待内容加载骨架屏或进度指示器无上下文提示的阻塞转圈
确认破坏性操作支持撤销过多的“你确定吗?”对话框
收集用户输入内联验证、智能默认值、自动填充为简单输入使用模态表单
请求权限上下文相关、即时解释、恰当时机启动时请求所有权限
提供反馈触觉 + 视觉指示器无确认提示的静默操作
组织偏好设置高频项在应用内设置将所有设置都放在系统设置应用中

输出格式

  1. 推荐模式及理由,引用相关参考文件。
  2. 分步实现指南,涵盖每个屏幕或状态。
  3. 平台差异,针对目标平台。
  4. 常见陷阱,对于此模式违反 HIG 的典型问题。

需要提问的问题

  1. 此模式出现在应用的哪个位置?上下流程是什么?
  2. 针对哪些平台?
  3. 是从头设计还是改进现有流程?
  4. 是否涉及敏感操作?(破坏性操作、支付、权限)

相关技能

  • hig-foundations -- 每个模式背后的无障碍、色彩、排版和隐私原则
  • hig-platforms -- 特定平台的模式实现
  • hig-components-layout -- 导航模式的结构性组件(标签栏、侧边栏、分屏视图)
  • hig-components-content -- 模式内的内容展示(图表、集合、搜索结果)

由 Raintree Technology 构建 · 更多开发者工具

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

COTA-App/LandingPage

>- Apple Human Interface Guidelines for content display components. Use this skill when the user asks about "charts component", "collection view", "image view", "web view", "color well", "image well", "activity view", "lockup", "data visualization", "content display", displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says "how should I display charts", "what's the best way to show images", "should I use a web view", "how do I build a grid of items", "what component shows media", or "how do I present a share sheet". Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.

COTA-App/LandingPage

>- Apple HIG guidance for selection and input controls including pickers, toggles, sliders, steppers, segmented controls, combo boxes, text fields, text views, labels, token fields, virtual keyboards, rating indicators, and gauges. Use this skill when the user says "picker or segmented control," "how should my form look," "what keyboard type should I use," "toggle vs checkbox," or asks about picker design, toggle, switch, slider, stepper, text field, text input, segmented control, combo box, label, token field, virtual keyboard, rating indicator, gauge, form design, input validation, or control state management. Cross-references: hig-components-menus, hig-components-dialogs, hig-components-search.

COTA-App/LandingPage

>- Apple Human Interface Guidelines for layout and navigation components. Use this skill when the user asks about "sidebar", "split view", "tab bar", "tab view", "scroll view", "window design", "panel", "list view", "table view", "column view", "outline view", "navigation structure", "app layout", "boxes", "ornaments", or organizing content hierarchically in Apple apps. Also use when the user says "how should I organize my app", "what navigation pattern should I use", "my layout breaks on iPad", "how do I build a sidebar", "should I use tabs or a sidebar", or "my app doesn't adapt to different screen sizes". Cross-references: hig-foundations for layout/spacing principles, hig-platforms for platform-specific navigation, hig-patterns for multitasking and full-screen, hig-components-content for content display.

COTA-App/LandingPage

>- Apple Human Interface Guidelines design foundations. Use this skill when the user asks about "HIG color", "Apple typography", "SF Symbols", "dark mode guidelines", "accessible design", "Apple design foundations", "app icon", "layout guidelines", "materials", "motion", "privacy", "right to left", "RTL", "inclusive design", branding, images, spatial layout, or writing style. Also use when the user says "my colors look wrong in dark mode", "what font should I use", "is my app accessible enough", "how do I support Dynamic Type", "what contrast ratio do I need", "how do I pick system colors", or "my icons don't match the system style". Cross-references: hig-platforms for platform-specific guidance, hig-patterns for interaction patterns, hig-components-layout for structural components, hig-components-content for display.

相关技能