Token导航 LogoToken导航TokenDH.com
研究检索只读unknown未标认证来源可访问许可证需确认审计未展示

ios-ui-design-guideiOS UI 设计指南

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

412

周安装

17

下载量

135
Local Agent

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ios-ui-design-guide(iOS UI 设计指南)
来源仓库:https://smithery.ai
仓库路径:ios-ui-design-guide
安装命令:
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

简介

该技能用于辅助界面设计、视觉规范和交互体验优化。

  • 适合整理页面结构、生成 UI 方案或检查视觉一致性。
  • 使用时需结合品牌系统和用户任务,避免堆砌装饰元素。
  • 涉及真实页面改动时应通过截图或预览检查文本溢出和对齐。
  • 建议在响应式布局和跨设备场景中验证实际表现。ios-ui-design-guide 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

iOS UI Design Guide

Overview

Build native iOS interfaces that look professional and follow Apple Human Interface Guidelines (HIG) by applying systematic design principles. This skill provides comprehensive guidelines for SwiftUI-first development with color system, spacing, typography, and component-specific patterns optimized for iOS.

When to Use This Skill

Activate this skill when:

  • Building iOS UI with SwiftUI or UIKit
  • Creating iOS app screens, views, or components
  • Working with iOS development (Swift, SwiftUI, Xcode)
  • Receiving requests like:

- "Create a login screen in SwiftUI" - "Design an iOS settings view" - "Build a profile card for iOS" - "Make this iOS UI follow HIG" - "Style this SwiftUI view"

Do NOT activate for:

  • Web development
  • Android development
  • Backend/server code
  • Non-visual iOS tasks

Core Design Philosophy

Follow Apple Human Interface Guidelines (HIG) three principles + Flexible extensions:

HIG Core Principles

  1. Clarity (명료성) - Content and functionality clearly visible and understandable
  2. Deference (존중) - UI helps content without competing with it
  3. Depth (깊이) - Visual layers and motion convey hierarchy and meaning

Flexible Extensions

  1. Simplicity - Remove unnecessary elements, focus on core features
  2. Consistency - Use system components, colors, and fonts
  3. Accessibility-First - Dynamic Type, VoiceOver, WCAG AA compliance, Dark Mode

Framework Priorities

  • Primary: SwiftUI (declarative, modern, recommended)
  • Secondary: UIKit (complex animations, legacy integration)

How to Use This Skill

Step 1: Load Relevant Reference

Before implementing any iOS UI component, load the appropriate reference file:

Read references/design-principles.md - HIG core principles + Flexible extensions
Read references/color-system.md - System colors, Dark Mode, semantic colors
Read references/spacing-system.md - 8pt grid, Safe Area handling
Read references/typography.md - SF Pro, Dynamic Type, text styles
Read references/component-patterns.md - SwiftUI component best practices
Read references/anti-patterns.md - Common iOS design mistakes

Recommendation: Start with design-principles.md for HIG philosophy, then load component-specific files as needed.

Step 2: Apply Component-Specific Patterns

For each component type, reference the corresponding section in component-patterns.md:

  • Button: component-patterns.md → Button section
  • List: component-patterns.md → List section
  • Form: component-patterns.md → Form section
  • Navigation: component-patterns.md → Navigation section
  • Card: component-patterns.md → Card section
  • Modal/Sheet: component-patterns.md → Modal section
  • Search: component-patterns.md → Search section
  • Image: component-patterns.md → Image section

Step 3: Validate Against Anti-Patterns

Before finalizing implementation, check anti-patterns.md to ensure the design avoids:

  • ❌ Fixed text sizes (no Dynamic Type support)
  • ❌ Dark Mode neglect (hardcoded colors like .black, .white)
  • ❌ Safe Area violations (content hidden by notch/home indicator)
  • ❌ Touch targets smaller than 44x44pt
  • ❌ Ignoring system components
  • ❌ Multiple Primary buttons

Step 4: Ensure System Consistency

Apply the 8pt grid system for all spacing:

  • Use only: 4pt (rare), 8pt, 12pt, 16pt, 20pt, 24pt, 32pt, 40pt, 48pt, 64pt
  • SwiftUI default .padding() = 16pt
  • Reference spacing-system.md for component-specific spacing

Use system colors for automatic Dark Mode:

  • Labels: .primary, .secondary, Color(.tertiaryLabel)
  • Backgrounds: Color(.systemBackground), Color(.secondarySystemBackground)
  • ONE accent color via .accentColor() or project settings
  • Reference color-system.md for detailed color usage

Maintain Dynamic Type support (REQUIRED):

  • Text styles: .largeTitle, .title, .title2, .title3, .headline, .body, .callout, .subheadline, .footnote, .caption, .caption2
  • NEVER use fixed .font(.system(size: 24)) without relativeTo
  • Reference typography.md for complete type scale

Resources

references/

Documentation loaded into context as needed to inform design decisions:

  • design-principles.md - HIG principles (Clarity, Deference, Depth) + Flexible extensions (Simplicity, Consistency, Accessibility)
  • color-system.md - System colors, Dark Mode support, semantic colors, adaptive colors, custom colors with Asset Catalog
  • spacing-system.md - 8pt grid scale, Safe Area handling, SwiftUI padding modifiers, component spacing
  • typography.md - SF Pro font, Dynamic Type (REQUIRED), text styles, font weights, accessibility
  • component-patterns.md - SwiftUI patterns for Button, List, Form, Navigation, Card, Modal, Search, Image, Progress, Badge
  • anti-patterns.md - Common iOS mistakes: fixed text, Dark Mode neglect, Safe Area violations, touch targets, system component neglect

Quick Decision Tree

iOS UI Component Request
│
├─ What component? → Load component-patterns.md section
│
├─ What spacing? → Use 8pt grid (spacing-system.md)
│
├─ What colors? → System colors + Dark Mode (color-system.md)
│
├─ What typography? → Dynamic Type text styles (typography.md)
│
├─ SwiftUI or UIKit? → SwiftUI first (unless specific UIKit need)
│
└─ Validation → Check anti-patterns.md

Examples

Good Request Flow:

User: "Create a login form in SwiftUI"
→ Read references/component-patterns.md (Form section)
→ Read references/spacing-system.md (Form spacing)
→ Apply: TextField with .body font (Dynamic Type), 8pt spacing, system colors
→ Validate against anti-patterns.md
→ Implement with Form { Section { TextField, SecureField, Button } }

Component Implementation Checklist:

  • ✅ Spacing uses 8pt multiples
  • ✅ Dynamic Type support (.title,.body, etc.)
  • ✅ System colors (auto Dark Mode)
  • ✅ Safe Area respected
  • ✅ Touch targets minimum 44x44pt
  • ✅ SwiftUI system components used
  • ✅ Single Primary button
  • ✅ Accessibility (VoiceOver labels)

SwiftUI Code Examples

✅ Good: HIG-Compliant Button

Button("확인") {
    saveData()
}
.buttonStyle(.borderedProminent)
.controlSize(.large)

✅ Good: Adaptive Colors

VStack {
    Text("제목")
        .font(.headline)
        .foregroundColor(.primary)  // Auto Dark Mode

    Text("설명")
        .font(.body)
        .foregroundColor(.secondary)
}
.padding()
.background(Color(.systemBackground))

❌ Bad: Fixed Sizes, No Dark Mode

Text("제목")
    .font(.system(size: 24))  // ❌ No Dynamic Type
    .foregroundColor(.black)  // ❌ No Dark Mode

VStack { }
    .ignoresSafeArea()  // ❌ Content hidden by notch

Platform-Specific Considerations

Safe Area (CRITICAL)

  • Always respect Safe Area for content
  • Use .ignoresSafeArea() only for backgrounds
  • Test on iPhone with notch/Dynamic Island

Dark Mode (REQUIRED)

  • Test in both Light and Dark modes
  • Use system colors (never .black, .white directly)
  • Define custom colors in Asset Catalog with Light/Dark variants

Dynamic Type (REQUIRED)

  • Test with largest accessibility text size
  • Use system text styles (.body, .headline, etc.)
  • Avoid fixed .lineLimit() that breaks with large text

Preview Multiple Configurations

struct MyView_Previews: PreviewProvider {
    static var previews: some View {
        Group {
            MyView()
                .preferredColorScheme(.light)
                .previewDisplayName("Light Mode")

            MyView()
                .preferredColorScheme(.dark)
                .previewDisplayName("Dark Mode")

            MyView()
                .environment(\.sizeCategory, .accessibilityExtraExtraLarge)
                .previewDisplayName("Large Text")
        }
    }
}

Reference Documentation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Local Agent

82.18%
按下载量换算111

安全审计

暂无安全审计结果可展示。

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills