AGENT SKILL

ios-native-design

Design, build, or review native SwiftUI screens and iOS 26 Liquid Glass surfaces — hierarchy, state, navigation, adaptive layout, accessibility, motion, and evidence-bound visual verification. Use when creating or changing a SwiftUI screen, component, or flow, adopting or auditing Liquid Glass, or checking that a UI feels native without copying Apple branding.

License 许可
MIT
最近更新
2026-11-10
Stars
★ 0
Forks
0

01 前言 Front Matter

name
ios-native-design
description
Design, build, or review native SwiftUI screens and iOS 26 Liquid Glass surfaces — hierarchy, state, navigation, adaptive layout, accessibility, motion, and evidence-bound visual verification. Use when creating or changing a SwiftUI screen, component, or flow, adopting or auditing Liquid Glass, or checking that a UI feels native without copying Apple branding.
allowed-tools
Read, Grep, Glob, Edit, Write, Bash
last_verified
1787097600000

02 资源文件 1

03 SKILL.md 正文

iOS Native Design

Overview

Use this skill to make an original product feel at home on Apple platforms through hierarchy, system components, semantic typography, adaptive composition, accessibility, and restrained material/motion decisions.

user outcome -> hierarchy/state -> native route -> adaptive interaction -> accessibility/reduced effects -> preview/fixture audit -> device proof

Read before acting

Design workflow

  1. State the user outcome, entry/exit route, primary action, domain truth, derived presentation state, and meaningful loading/empty/validation/permission/error/cancel states. Do not begin with a screenshot or material.
  2. Establish hierarchy: content first, functional controls second, navigation/system surfaces third, decorative treatment last. Preserve the target app’s supplied copy, assets, product identity, and scope.
  3. Prefer the narrowest native route: NavigationStack/NavigationSplitView, standard controls, semantic colors, system typography, toolbars, sheets, lists, forms, search, and platform behaviors before custom drawing or custom controls.
  4. Keep system-managed bars and controls system-managed. Use Liquid Glass system adoption when the OS supplies the treatment; use custom glassEffect only for a genuinely functional custom element that a standard control cannot express.
  5. Group related glass elements with GlassEffectContainer only when grouping or morphing communicates a real semantic relationship. Give morphing participants stable, meaningful identity; do not animate incidental layout changes or turn every surface into translucent decoration.
  6. Make layout adaptive across Dynamic Type, localization/content length, orientation, split views, iPad, Mac Catalyst or other in-scope destinations, safe areas, keyboard, and compact/regular size classes. Avoid fixed phone-width assumptions.
  7. Treat accessibility as a component contract: semantic control role, label/value/hint, reading order, grouping, focus, actions, contrast, hit region, VoiceOver result, captions/text alternatives, and a non-gesture/non-color path for core actions.
  8. Add motion, morphing, and haptics only when they explain state, spatial identity, or action confirmation. Provide reduced-motion/reduced-effects behavior and preserve the task when animation is skipped or interrupted.
  9. Build a preview/fixture matrix for long text, empty/loading/error states, dark/light appearance, large text, right-to-left or localized strings where in scope, reduced motion/transparency, high contrast, split view, and compact width. A preview is design evidence, not physical-device proof.
  10. Verify the real target on representative physical devices. Record OS build, device, text size, appearance, accessibility settings, interaction route, scroll/hit behavior, transition interruption, haptic result, material legibility, performance, and remaining release gaps.

Native and Liquid Glass boundaries

  • Apple-native does not mean copying Apple screens, icons, wording, proprietary branding, or a screenshot. Preserve an original product hierarchy while using the platform’s semantic components and conventions.
  • A blur, opacity, gradient, or generic material is not automatically Liquid Glass. Record which behavior is system-provided and which is custom so SDK changes can be rechecked.
  • Glass is a functional layer above content, not a substitute for hierarchy or contrast. Keep text and controls readable over changing backgrounds; never make translucency, color, blur, or motion the only carrier of meaning.
  • Custom controls must expose the same semantic role, focus/action behavior, hit target, keyboard/controller path, and accessibility value as the native control they replace. Prefer a native control when it fits.
  • Animation is state-scoped and cancellable. The destination state must remain understandable when Reduce Motion is enabled, a transition is interrupted, content loads slowly, or a device cannot provide the desired effect.
  • Haptic feedback confirms a user action; it does not replace visible or spoken feedback and must have a graceful no-hardware/no-preference path.

Fast path

Review the smallest state-by-environment matrix: primary state, empty/error state, Dynamic Type or VoiceOver, reduced effects, and the narrowest and widest supported target. Record a concrete defect, affected state, and owner; do not spend a full screenshot pass on a surface that fails its semantic or state contract.

Deliverable

Produce a compact design note or implementation change containing:

  • user outcome, hierarchy, native component choices, state matrix, and rejected alternatives;
  • system-provided versus custom Liquid Glass boundary, grouping/identity, and fallback;
  • adaptive layout, localization, Dynamic Type, accessibility, reduced motion/effects, focus, gesture, and haptic behavior;
  • preview/fixture matrix and exact compile, accessibility-inspection, simulator, physical-device, performance, signing, and release evidence;
  • remaining to-verify gaps and claims deliberately not made.

For implementation, change only the requested screen/component and directly related state or preview fixtures. Do not globally restyle an app, replace system bars with custom glass, add a dependency, alter supplied copy/assets, or add analytics/permissions/entitlements without a stated product need and authorization.

Verification matrix, completion report, refusal list, and sources: references/details.md.

04 同仓库更多 Skills