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
- 参考文档references/details.md5.4 KB
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
- Inspect the actual Xcode target, deployment target, platform/device family, scene/lifecycle model, root view, navigation, state/observation model, assets, supplied copy, localization, and existing UIKit bridges.
- Read SwiftUI mental model, state and observation, layout, typography, and controls, navigation and routing, accessibility and adaptable UI, and Liquid Glass principles.
- Read system-first Liquid Glass adoption, custom glass effects, glass containers and morphing, and the native screen/design recipes.
- Refresh the official SwiftUI, Liquid Glass, accessibility, and HIG pages listed in
references/details.mdbefore relying on an API, iOS 26 behavior, material effect, or availability annotation. The knowledge base was last checked in August 2026.
Design workflow
- 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.
- 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.
- 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. - Keep system-managed bars and controls system-managed. Use Liquid Glass system adoption when the OS supplies the treatment; use custom
glassEffectonly for a genuinely functional custom element that a standard control cannot express. - Group related glass elements with
GlassEffectContaineronly 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. - 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.
- 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.
- 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.
- 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.
- 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-verifygaps 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
no-description
暂无简介
good-skill
Fixture skill that satisfies every rule.
broken-link
Links to a reference file that does not exist.
Bad_Name
Name violates the kebab-case rule and does not match the directory.
skill-authoring
Write, review, and validate portable agent skills in SKILL.md format. Use when creating a new skill, editing an existing one, or asked whether a skill follows the Agent Skills spec.
weigh-bags
Record scale readings for each bag — empty (tare), outbound, current, final — and reconcile them against the itemised inventory to find unaccounted weight. Use when the user gives a bag weight, says how heavy something is, weighs their luggage, or asks how close to the limit they are. Appends to bags.yaml and runs scripts/reconcile.py.