[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FECXBF5HJAAV150FC43YAN":3,"skill-same:01M6FECXBF5HJAAV150FC43YAN":49},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":22,"linkOnly":23,"markdownContent":24,"markdownBody":24,"frontMatter":25,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M6FECXBF5HJAAV150FC43YAN","ios-ui-refactor",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Fios-ui-refactor\u002FSKILL.md",[],[18,19,20,21],"ui","ios","refactor","ios ui refactor","2026-11-10 10:12:30",false,"# Apple HIG SwiftUI iOS 26 \u002F Swift 6.2 Best Practices\n\nA principal designer's lens for evaluating and refactoring SwiftUI interfaces to Apple-quality standards, grounded in Rams, Segall, and Edson. Contains 51 rules across 8 categories, each grounded in specific principles from three foundational design texts:\n\n- **Dieter Rams** — *Ten Principles for Good Design* (\"less, but better,\" \"design should be honest\")\n- **Ken Segall** — *Insanely Simple* (simplicity as a core principle for intuitive, beautiful products)\n- **John Edson** — *Design Like Apple* (design-focused culture, prototyping to perfection, the product is the marketing)\n\nCategories are ordered by a visual review process: start with what to remove, then what to clarify, then what to make honest, invisible, systematic, thorough, enduring, and finally what to refine.\n\n## Scope & Relationship to Sibling Skills\n\nThis skill is the **refactoring and review lens** — it evaluates existing UI and identifies visual anti-patterns to fix. When loaded alongside `ios-design` (building new UI), `ios-hig` (HIG compliance), or `swift-refactor` (code-level refactoring), this skill supersedes overlapping rules with more detailed \"incorrect -> correct\" transformations and \"When NOT to apply\" guidance. Use this skill for auditing and improving existing screens; use the siblings for greenfield implementation.\n\n\n## Clinic Architecture Contract (iOS 26 \u002F Swift 6.2)\n\nAll guidance in this skill assumes the clinic modular MVVM-C architecture:\n\n- Feature modules import `Domain` + `DesignSystem` only (never `Data`, never sibling features)\n- App target is the convergence point and owns `DependencyContainer`, concrete coordinators, and Route Shell wiring\n- `Domain` stays pure Swift and defines models plus repository, `*Coordinating`, `ErrorRouting`, and `AppError` contracts\n- `Data` owns SwiftData\u002Fnetwork\u002Fsync\u002Fretry\u002Fbackground I\u002FO and implements Domain protocols\n- Read\u002Fwrite flow defaults to stale-while-revalidate reads and optimistic queued writes\n- ViewModels call repository protocols directly (no default use-case\u002Finteractor layer)\n\n## When to Apply\n\nReference these guidelines when:\n- Reviewing existing SwiftUI screens for visual quality issues\n- Auditing whether every element on screen earns its place (Rams #10)\n- Evaluating if the interface is self-explanatory without tooltips (Rams #4)\n- Checking that colors, states, and hierarchy tell the truth (Rams #6)\n- Ensuring animations and materials are invisible, not decorative (Rams #5)\n- Verifying spacing, radii, and colors form a coherent system (Edson \"Systems Thinking\")\n- Confirming edge cases — reduce motion, touch targets, safe areas — are handled (Rams #8)\n- Adopting iOS 26 \u002F Swift 6.2 APIs that refine previously impossible interactions (Edson \"Design Out Loud\")\n\n## Rule Categories by Priority\n\n| Priority | Category | Principle | Impact | Prefix | Rules |\n|----------|----------|-----------|--------|--------|-------|\n| 1 | Less, But Better | Rams #10 + Segall \"Think Minimal\" | CRITICAL | `less-` | 7 |\n| 2 | Self-Evident Design | Rams #4 + Segall \"Think Human\" | CRITICAL | `evident-` | 6 |\n| 3 | Honest Interfaces | Rams #6 + Segall \"Think Brutal\" | CRITICAL | `honest-` | 6 |\n| 4 | Invisible Design | Rams #5 + Edson \"Product Is Marketing\" | HIGH | `invisible-` | 6 |\n| 5 | Systems, Not Pieces | Edson \"Systems Thinking\" + Rams #8 | HIGH | `system-` | 6 |\n| 6 | Thorough to the Last Detail | Rams #8 + Rams #2 | HIGH | `thorough-` | 7 |\n| 7 | Enduring Over Trendy | Rams #7 + Edson \"Design With Conviction\" | MEDIUM-HIGH | `enduring-` | 5 |\n| 8 | Refined Through Iteration | Edson \"Design Out Loud\" + Rams #1\u002F#3 | MEDIUM | `refined-` | 8 |\n\n## Quick Reference\n\n### 1. Less, But Better (CRITICAL)\n\nRams #10: \"Good design is as little design as possible.\" Segall: Apple succeeded by saying no to a thousand things.\n\n- [`less-single-focal`](references\u002Fless-single-focal.md) - One primary focal point per screen\n- [`less-type-restraint`](references\u002Fless-type-restraint.md) - Limit to 3-4 distinct type treatments per screen\n- [`less-one-typeface`](references\u002Fless-one-typeface.md) - One typeface per app, differentiate with weight and size\n- [`less-color-restraint`](references\u002Fless-color-restraint.md) - Reserve saturated colors for small interactive elements\n- [`less-one-color-purpose`](references\u002Fless-one-color-purpose.md) - Each semantic color serves exactly one purpose\n- [`less-purposeful-motion`](references\u002Fless-purposeful-motion.md) - Every animation must communicate state change or provide feedback\n- [`less-fewer-controls`](references\u002Fless-fewer-controls.md) - Remove controls that do not serve the core task\n\n### 2. Self-Evident Design (CRITICAL)\n\nRams #4: \"Good design makes a product understandable.\" Segall: interfaces must speak in terms people understand.\n\n- [`evident-visual-weight`](references\u002Fevident-visual-weight.md) - Combine size, weight, and contrast for hierarchy\n- [`evident-whitespace-grouping`](references\u002Fevident-whitespace-grouping.md) - Use whitespace to separate conceptual groups\n- [`evident-progressive-disclosure`](references\u002Fevident-progressive-disclosure.md) - Use progressive disclosure for dense information\n- [`evident-reading-order`](references\u002Fevident-reading-order.md) - Align visual weight with logical reading order\n- [`evident-navigation-intent`](references\u002Fevident-navigation-intent.md) - Sheets for tasks and creation, push for drill-down hierarchy\n- [`evident-label-clarity`](references\u002Fevident-label-clarity.md) - Use clear labels over ambiguous icons\n\n### 3. Honest Interfaces (CRITICAL)\n\nRams #6: \"Good design is honest.\" Segall: clarity without sugar-coating.\n\n- [`honest-semantic-colors`](references\u002Fhonest-semantic-colors.md) - Use semantic colors, never hard-coded black or white\n- [`honest-contrast`](references\u002Fhonest-contrast.md) - Ensure WCAG AA contrast ratios\n- [`honest-dark-mode`](references\u002Fhonest-dark-mode.md) - Define light and dark variants for every custom color\n- [`honest-foreground-style`](references\u002Fhonest-foreground-style.md) - Use foregroundStyle over foregroundColor\n- [`honest-depth-cues`](references\u002Fhonest-depth-cues.md) - Use materials for layering, not drop shadows for depth\n- [`honest-loading-states`](references\u002Fhonest-loading-states.md) - Show real progress, not indefinite spinners\n\n### 4. Invisible Design (HIGH)\n\nRams #5: \"Good design is unobtrusive.\" Edson: the product itself is the marketing.\n\n- [`invisible-spring-physics`](references\u002Finvisible-spring-physics.md) - Default to spring animations for all UI transitions\n- [`invisible-spring-presets`](references\u002Finvisible-spring-presets.md) - Use .smooth for routine, .snappy for interactive, .bouncy for delight\n- [`invisible-no-easing`](references\u002Finvisible-no-easing.md) - Prefer springs over linear and easeInOut for UI elements\n- [`invisible-system-materials`](references\u002Finvisible-system-materials.md) - Use system materials, not custom semi-transparent backgrounds\n- [`invisible-symbol-effects`](references\u002Finvisible-symbol-effects.md) - Use built-in symbolEffect, not manual symbol animation\n- [`invisible-content-transitions`](references\u002Finvisible-content-transitions.md) - Use contentTransition for changing text and numbers\n\n### 5. Systems, Not Pieces (HIGH)\n\nEdson: \"Design is systems thinking.\" Rams #8: nothing must be arbitrary or left to chance.\n\n- [`system-spacing-grid`](references\u002Fsystem-spacing-grid.md) - Use a 4pt base unit for all spacing\n- [`system-consistent-padding`](references\u002Fsystem-consistent-padding.md) - Use consistent padding across all screens\n- [`system-corner-radii`](references\u002Fsystem-corner-radii.md) - Standardize corner radii per component type\n- [`system-alignment`](references\u002Fsystem-alignment.md) - Consistent alignment per content type within a screen\n- [`system-color-naming`](references\u002Fsystem-color-naming.md) - Name custom colors by role, not hue\n- [`system-brand-integration`](references\u002Fsystem-brand-integration.md) - Map brand palette onto iOS semantic color roles\n\n### 6. Thorough to the Last Detail (HIGH)\n\nRams #8: \"Care and accuracy in the design process show respect for the user.\" Rams #2: if the user cannot reliably use it, the product has failed.\n\n- [`thorough-reduce-motion`](references\u002Fthorough-reduce-motion.md) - Always provide reduce motion fallback\n- [`thorough-touch-targets`](references\u002Fthorough-touch-targets.md) - All interactive elements at least 44x44 points\n- [`thorough-safe-areas`](references\u002Fthorough-safe-areas.md) - Always respect safe areas\n- [`thorough-readable-weights`](references\u002Fthorough-readable-weights.md) - Avoid light font weights for body text\n- [`thorough-vibrancy-levels`](references\u002Fthorough-vibrancy-levels.md) - Match vibrancy level to content importance\n- [`thorough-material-thickness`](references\u002Fthorough-material-thickness.md) - Choose material thickness by contrast needs\n- [`thorough-background-interaction`](references\u002Fthorough-background-interaction.md) - Enable background interaction for peek-style sheets\n\n### 7. Enduring Over Trendy (MEDIUM-HIGH)\n\nRams #7: \"Good design is long-lasting.\" Edson: commit to a voice that persists across product generations.\n\n- [`enduring-system-text-styles`](references\u002Fenduring-system-text-styles.md) - Use Apple text styles, never fixed font sizes\n- [`enduring-weight-not-caps`](references\u002Fenduring-weight-not-caps.md) - Use weight for emphasis, not ALL CAPS\n- [`enduring-swipe-back`](references\u002Fenduring-swipe-back.md) - Never break the system back-swipe gesture\n- [`enduring-zoom-navigation`](references\u002Fenduring-zoom-navigation.md) - Use zoom transitions for collection-to-detail navigation\n- [`enduring-card-modularity`](references\u002Fenduring-card-modularity.md) - Use self-contained cards for dashboard layouts\n\n### 8. Refined Through Iteration (MEDIUM)\n\nEdson: \"Design out loud\" — prototype relentlessly until every interaction feels inevitable. Rams #1: innovation serves genuine purpose.\n\n- [`refined-scroll-transitions`](references\u002Frefined-scroll-transitions.md) - Use scrollTransition for scroll-position visual effects\n- [`refined-phase-animator`](references\u002Frefined-phase-animator.md) - Use PhaseAnimator for multi-step animation sequences\n- [`refined-mesh-gradients`](references\u002Frefined-mesh-gradients.md) - Use MeshGradient for premium dynamic backgrounds\n- [`refined-text-renderer`](references\u002Frefined-text-renderer.md) - Use TextRenderer for hero text animations only\n- [`refined-inspector`](references\u002Frefined-inspector.md) - Use inspector for trailing-edge detail panels\n- [`refined-multi-detent`](references\u002Frefined-multi-detent.md) - Provide multiple sheet detents with drag indicator\n- [`refined-matched-geometry`](references\u002Frefined-matched-geometry.md) - Use matchedGeometryEffect for contextual origin transitions\n- [`refined-no-hard-cuts`](references\u002Frefined-no-hard-cuts.md) - Always animate between states, even minimally\n\n## How to Use\n\nRead individual reference files for detailed explanations and code examples:\n\n- [Section definitions](references\u002F_sections.md) - Category structure, principle sources, and impact levels\n- [Rule template](assets\u002Ftemplates\u002F_template.md) - Template for adding new rules\n\n## Reference Files\n\n| File | Description |\n|------|-------------|\n| [references\u002F_sections.md](references\u002F_sections.md) | Category definitions and principle grounding |\n| [assets\u002Ftemplates\u002F_template.md](assets\u002Ftemplates\u002F_template.md) | Template for new rules |\n| [metadata.json](metadata.json) | Version and reference information |\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fpproenca\u002Fdot-skills\u002Fios-ui-refactor",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill ios-ui-refactor",{"tool":41,"command":42},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill ios-ui-refactor",{"tool":44,"command":45},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill ios-ui-refactor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Fios-ui-refactor\u002FSKILL.md",true,[],[50,59,68,77,83,89],{"skillNo":51,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":22},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[56,57,58],"model","model hierarchy","model hierarchy skill",{"skillNo":60,"name":61,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":22},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[65,66,67],"MCP","zoom","zoom mcp",{"skillNo":69,"name":70,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":22},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[74,75,76,66],"sdk","zoom apps sdk","apps",{"skillNo":78,"name":79,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":22},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[79],{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":22},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[85],{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":22},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[91]]