ios-application-dev by minimax-ai/skills
npx skills add https://github.com/minimax-ai/skills --skill ios-application-dev一份使用 UIKit、SnapKit 和 SwiftUI 构建 iOS 应用的实用指南。侧重于经过验证的模式和苹果平台惯例。
| 用途 | 组件 |
|---|---|
| 主要部分 | UITabBarController |
| 向下钻取 | UINavigationController |
| 聚焦任务 | 表单呈现 |
| 关键选择 | UIAlertController |
| 次要操作 | UIContextMenuInteraction |
| 列表内容 | + |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
UICollectionViewDiffableDataSource| 分节列表 | DiffableDataSource + headerMode |
| 网格布局 | UICollectionViewCompositionalLayout |
| 搜索 | UISearchController |
| 分享 | UIActivityViewController |
| 位置(单次) | CLLocationButton |
| 触觉反馈 | UIImpactFeedbackGenerator |
| 线性布局 | UIStackView |
| 自定义形状 | CAShapeLayer + UIBezierPath |
| 渐变 | CAGradientLayer |
| 现代按钮 | UIButton.Configuration |
| 动态文本 | UIFontMetrics + preferredFont |
| 深色模式 | 语义化颜色(.systemBackground、.label) |
| 权限 | 上下文请求 + AVCaptureDevice |
| 生命周期 | UIApplication 通知 |
| 用途 | 组件 |
|---|---|
| 主要部分 | TabView + tabItem |
| 向下钻取 | NavigationStack + NavigationPath |
| 聚焦任务 | .sheet + presentationDetents |
| 关键选择 | .alert |
| 次要操作 | .contextMenu |
| 列表内容 | List + .insetGrouped |
| 搜索 | .searchable |
| 分享 | ShareLink |
| 位置(单次) | LocationButton |
| 触觉反馈 | UIImpactFeedbackGenerator |
| 进度(已知) | ProgressView(value:total:) |
| 进度(未知) | ProgressView() |
| 动态文本 | .font(.body) 语义化样式 |
| 深色模式 | .primary、.secondary、Color(.systemBackground) |
| 场景生命周期 | @Environment(\.scenePhase) |
| 减少动态效果 | @Environment(\.accessibilityReduceMotion) |
| 动态类型 | @Environment(\.dynamicTypeSize) |
.ignoresSafeArea())preferredFont(forTextStyle:) + adjustsFontForContentSizeCategory = true.headline、.body、.captionUIFontMetrics / Font.custom(_:size:relativeTo:).systemBackground、.label、.primary、.secondary).accessibilityLabel())@Environment(\.accessibilityReduceMotion)).accessibilitySortPriority())@SceneStorage、@State).destructive 角色| 主题 | 参考 |
|---|---|
| 触摸目标、安全区域、CollectionView | 布局系统 |
| 标签栏、导航控制器、模态 | 导航模式 |
| StackView、按钮、警告框、搜索、上下文菜单 | UIKit 组件 |
| CAShapeLayer、CAGradientLayer、核心动画 | 图形与动画 |
| 动态类型、语义化颜色、VoiceOver | 辅助功能 |
| 权限、位置、分享、生命周期、触觉反馈 | 系统集成 |
| Metal 着色器与 GPU | Metal 着色器参考 |
| SwiftUI HIG、组件、模式、反模式 | SwiftUI 设计指南 |
| 可选类型、协议、async/await、ARC、错误处理 | Swift 编码标准 |
Swift、SwiftUI、UIKit、SF Symbols、Metal 和 Apple 是 Apple Inc. 的商标。SnapKit 是其各自所有者的商标。
每周安装量
161
代码仓库
GitHub 星标
4.4K
首次出现
8 天前
安全审计
安装于
opencode158
codex157
cursor156
gemini-cli155
github-copilot155
amp154
A practical guide for building iOS applications using UIKit, SnapKit, and SwiftUI. Focuses on proven patterns and Apple platform conventions.
| Purpose | Component |
|---|---|
| Main sections | UITabBarController |
| Drill-down | UINavigationController |
| Focused task | Sheet presentation |
| Critical choice | UIAlertController |
| Secondary actions | UIContextMenuInteraction |
| List content | UICollectionView + DiffableDataSource |
| Sectioned list | DiffableDataSource + headerMode |
| Grid layout | UICollectionViewCompositionalLayout |
| Search | UISearchController |
| Share | UIActivityViewController |
| Location (once) | CLLocationButton |
| Feedback | UIImpactFeedbackGenerator |
| Linear layout | UIStackView |
| Custom shapes | CAShapeLayer + UIBezierPath |
| Gradients | CAGradientLayer |
| Modern buttons | UIButton.Configuration |
| Dynamic text | UIFontMetrics + preferredFont |
| Dark mode | Semantic colors (.systemBackground, .label) |
| Permissions | Contextual request + AVCaptureDevice |
| Lifecycle | UIApplication notifications |
| Purpose | Component |
|---|---|
| Main sections | TabView + tabItem |
| Drill-down | NavigationStack + NavigationPath |
| Focused task | .sheet + presentationDetents |
| Critical choice | .alert |
| Secondary actions |
.ignoresSafeArea() only for backgrounds)preferredFont(forTextStyle:) + adjustsFontForContentSizeCategory = true.headline, .body, .captionUIFontMetrics / Font.custom(_:size:relativeTo:).systemBackground, .label, .primary, .secondary).accessibilityLabel())@Environment(\.accessibilityReduceMotion)).accessibilitySortPriority())@SceneStorage, @State).destructive role| Topic | Reference |
|---|---|
| Touch Targets, Safe Area, CollectionView | Layout System |
| TabBar, NavigationController, Modal | Navigation Patterns |
| StackView, Button, Alert, Search, ContextMenu | UIKit Components |
| CAShapeLayer, CAGradientLayer, Core Animation | Graphics & Animation |
| Dynamic Type, Semantic Colors, VoiceOver | Accessibility |
| Permissions, Location, Share, Lifecycle, Haptics | System Integration |
| Metal Shaders & GPU | Metal Shader Reference |
Swift, SwiftUI, UIKit, SF Symbols, Metal, and Apple are trademarks of Apple Inc. SnapKit is a trademark of its respective owners.
Weekly Installs
161
Repository
GitHub Stars
4.4K
First Seen
8 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode158
codex157
cursor156
gemini-cli155
github-copilot155
amp154
电子表格自动化技能:Python openpyxl与pandas创建、编辑、分析、可视化Excel/CSV数据
159 周安装
TDD 工作流指南:红绿重构循环、三定律与实践原则 | 测试驱动开发
159 周安装
Vite React 最佳实践指南:资深开发者构建高性能生产级SPA
159 周安装
Google Calendar自动化教程:通过Rube MCP与Composio实现事件管理与日程安排
159 周安装
OpenCode Bridge 集成指南:CLI、数据库与MCP桥接实现AI助手通信
159 周安装
loop 自主实验循环工具 - 自动化定时运行 AI 实验与性能测试
159 周安装
.contextMenu| List content | List + .insetGrouped |
| Search | .searchable |
| Share | ShareLink |
| Location (once) | LocationButton |
| Feedback | UIImpactFeedbackGenerator |
| Progress (known) | ProgressView(value:total:) |
| Progress (unknown) | ProgressView() |
| Dynamic text | .font(.body) semantic styles |
| Dark mode | .primary, .secondary, Color(.systemBackground) |
| Scene lifecycle | @Environment(\.scenePhase) |
| Reduce motion | @Environment(\.accessibilityReduceMotion) |
| Dynamic type | @Environment(\.dynamicTypeSize) |
| SwiftUI HIG, Components, Patterns, Anti-Patterns | SwiftUI Design Guidelines |
| Optionals, Protocols, async/await, ARC, Error Handling | Swift Coding Standards |