2048 iOS 原生开发
2048-ios-development
实现或审查原生 SwiftUI 版 2048 应用,包括其 ViewModel、数据持久化、无障碍功能、XCTest 测试覆盖率或模拟器流程。
- License 许可
- MIT
- 最近更新
- 2026-09-28
- Stars
- ★ 22
- Forks
- 14
01 前言 Front Matter
- name
- 2048-ios-development
- description
- Implement or review the native SwiftUI 2048 app, its ViewModel, persistence, accessibility, XCTest coverage, or simulator flows.
02 资源文件 1
- 参考文档agents/openai.yaml242 B
03 SKILL.md 正文
2048 iOS development
Read AGENTS.md and the native sections of docs/architecture.md. Keep rules and persistence orchestration in GameViewModel.swift; keep adaptive presentation in SwiftUI views. Preserve deterministic injection used by tests and production randomness used by the app.
Use SF Symbols for controls, accessibility labels and identifiers for interactive elements, native confirmation and sheet patterns, safe-area-aware layout, Dynamic Type resilience, and reduced-motion behavior where animation exists. Do not replace system icons with text glyphs.
Never place the board inside a ScrollView. A scroll view's pan is a UIKit recogniser and outranks the board's SwiftUI DragGesture, so vertical swipes stop reaching the game entirely — and neither .highPriorityGesture nor .scrollBounceBehavior changes that. The layout is sized to fit, with ViewThatFits(in: .vertical) as the fallback; if you add vertical content, keep the static branch fitting and confirm app.scrollViews stays empty.
Add focused XCTest coverage for rules/state changes and XCUITest coverage for user-visible flows. Optional cloud code lives in Game-2048/Cloud/ — keep it additive, never put the board in a scroll view to make room for it, and add new Swift files to the Xcode project. CloudViews.swift is excluded from the coverage gate (same posture as Android's CloudUi); cover CloudAPI / CloudController / CloudStore with fake-transport unit tests instead. Run make test-ios; set IOS_SIMULATOR_ID when a specific simulator is required. make ios-run builds, installs, and launches on a resolved simulator without opening Xcode. Inspect launch, gameplay, help, restart, win, and game-over states for visible changes.
04 同仓库更多 Skills
2048 网页游戏开发
2048-web-development
实现或审查 2048 浏览器客户端、响应式 UI、无障碍访问、PWA 元数据、截图或 SEO。
2048 发布就绪核验
2048-release-readiness
核验所有 2048 客户端的测试、构建、截图、元数据、文档及发布就绪状态。
2048 iOS 客户端开发
2048-ios-development
实现或审查基于 SwiftUI 的 2048 客户端、ViewModel、持久化、无障碍访问、测试或模拟器流程。
2048 跨平台体验一致性协调
2048-cross-platform-parity
协调 Web、iOS 和 Android 三个 2048 客户端之间的行为与用户体验(UX)变更。
2048 Android 客户端开发
2048-android-development
实现或审查基于 Compose 的 2048 客户端、ViewModel、持久化、Gradle 构建或模拟器流程。
2048 Web 前端开发
2048-web-development
实现或审查 2048 浏览器客户端,包括其规则引擎、响应式 UI、无障碍功能、PWA 元数据、截图或 SEO(搜索引擎优化)。