Swift iOS Design Best Practices
Comprehensive guide to UI/UX design principles, architectural patterns, and animation techniques for building high-quality iOS apps with Swift.
от mosif16★ 18 звёзд на GitHub
Установить Swift iOS Design Best Practices в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Instructions
UI/UX Design Best Practices
Follow Apple’s Design Principles: Adhere to the Human Interface Guidelines (HIG) emphasis on clarity, deference, and depth in your app’s design:contentReference[oaicite:0]{index=0}. Ensure every element has a clear purpose and is easily understood (clarity), UI chrome does not distract from content (deference), and use layering and subtle effects to convey hierarchy (depth):contentReference[oaicite:1]{index=1}:contentReference[oaicite:2]{index=2}. A user interface that embodies these principles will feel intuitive and engaging.
Design for All Devices: Build adaptive layouts that work across various iPhone and iPad screen sizes and orientations. Use Auto Layout (UIKit) or responsive layouts in SwiftUI to accommodate different screen dimensions and safe areas. For example, ensure iPad interfaces support both portrait and landscape with appropriate spacing and that important controls remain easily accessible:contentReference[oaicite:3]{index=3}. Consistent UI behaviors across devices improve familiarity and usability:contentReference[oaicite:4]{index=4}.
Touch-Friendly Interfaces: Make interactive controls comfortable for touch. Use native UIKit controls (like
UIButton,UISwitch, etc.) or SwiftUI controls which are optimized for touch interactions:contentReference[oaicite:5]{index=5}. Ensure hit targets are at least 44×44 points:contentReference[oaicite:6]{index=6} so buttons aren’t too small to tap. Spacing between tappable elements should prevent accidental touches on the wrong item.Typography and Readability: Use a minimum font size of 11 points for body text to ensure legibility without zooming:contentReference[oaicite:7]{index=7}. Support Dynamic Type so that text scales for users who prefer larger text sizes:contentReference[oaicite:8]{index=8}. In Swift, this means using text styles (e.g.
.body,.headline) orUIFont.preferredFont(forTextStyle:)and enablingadjustsFontForContentSizeCategoryon UIKit labels. Ensure sufficient contrast between text and background colors for readability:contentReference[oaicite:9]{index=9}, especially in various lighting conditions or Dark Mode. Avoid using ultra-light font weights on small text and prefer system fonts (San Francisco) for optimal readability and accessibility:contentReference[oaicite:10]{index=10}.Spacing and Alignment: Design clean layouts with appropriate whitespace. Avoid overcrowding the interface or overlapping elements:contentReference[oaicite:11]{index=11}. Use padding and margins consistently – for example, use stack views or SwiftUI’s
VStack/HStackto distribute elements with regular spacing. Align text, images, and controls in a logical way to convey relationships (e.g. aligning labels and text fields in a form):contentReference[oaicite:12]{index=12}. As a general rule, avoid placing more than 2-3 controls side by side to prevent a cramped, confusing layout:contentReference[oaicite:13]{index=13}. A well-organized interface with visual hierarchy helps users navigate content at a glance.Use High-Quality Assets & Adaptivity: Provide @2x and @3x image assets for all graphics so they render sharply on Retina and high-resolution displays:contentReference[oaicite:14]{index=14}. Always display images at their natural aspect ratio to avoid distortion:contentReference[oaicite:15]{index=15}. Opt for vector resources like SF Symbols for icons when possible – these scale beautifully on all devices and automatically align with Dynamic Type and weight changes. Ensure your color choices and images look good in both Light and Dark Mode. Use dynamic system colors (e.g.
.label,.systemBackground) that automatically adapt to light/dark appearances:contentReference[oaicite:16]{index=16} so your app maintains good contrast and consistent feel in either mode. Test your app in both Light and Dark themes to confirm that text and icons remain legible and visually pleasing:contentReference[oaicite:17]{index=17}.Platform Consistency: Stick to iOS conventions for a familiar user experience. Utilize system UI components (tab bars for primary navigation, navigation bars for hierarchical screens, modals for transient tasks, etc.) instead of custom reinvented controls:contentReference[oaicite:18]{index=18}. Users expect standard gestures and behaviors – e.g. swiping from the edge to go back, pull-to-refresh, etc. – so leverage UIKit/SwiftUI components that come with these behaviors built-in. Maintain consistency in iconography and terminology with iOS standards (for example, use the term “Edit” for edit actions, use the system share sheet for sharing). By leveraging Apple’s built-in UI elements and patterns, your app will feel “at home” on iOS and automatically gain functionalities like Dynamic Type and VoiceOver support:contentReference[oaicite:19]{index=19}.
Accessibility First: Incorporate accessibility from the s
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Swift iOS Design Best Practices?
Comprehensive guide to UI/UX design principles, architectural patterns, and animation techniques for building high-quality iOS apps with Swift.
Как установить скилл Swift iOS Design Best Practices?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Swift iOS Design Best Practices запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…