Ios Development 标志

Ios Development

社区
AnastasiyaW
ios-development

Comprehensive iOS app development skill. Use this skill for ANY iOS-related task: writing Swift/SwiftUI/UIKit code, architecting apps, debugging crashes, setting up navigation, networking, data persistence, animations, performance optimization, App Store submission, Xcode configuration. Trigger when user mentions: iOS, Swift, SwiftUI, UIKit, Xcode, iPhone/iPad app, Combine, CoreData, SwiftData, MVVM, TCA, URLSession, async/await, @State/@Binding/@ObservableObject, NavigationStack, XCTest, TestFlight, provisioning profiles, or any Apple platform development. Always use this skill before writing iOS code or architecture. Do NOT use for web frontends (HTML/CSS/JS, React/Vue, browser UI) — even a WebView's page content is web work; use frontend-design for that. This skill is native Apple-platform code only.

Add to TypingMind

概览

发布者AnastasiyaW
代码仓库codex-claude-code-config
技能名称ios-development
星标数
212
复刻数
32
附带文件
8
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 8 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 AnastasiyaW 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Ios Development AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/AnastasiyaW/codex-claude-code-config/tree/main/skills/ios/ios-development
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AnastasiyaW/codex-claude-code-config.git /tmp/codex-claude-code-config
mkdir -p .claude/skills
cp -r /tmp/codex-claude-code-config/skills/ios/ios-development .claude/skills/ios-development
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Ios Development,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Ios Development。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Ios Development 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

iOS Development Skill

Quick orientation

Before anything else, identify:

  1. UI framework → SwiftUI / UIKit / mixed?
  2. Architecture → MVVM / TCA / VIPER / Clean / MVC?
  3. iOS target → iOS 16 / 17 / 18? (affects API availability)
  4. Task type → new feature / debug / refactor / architecture / performance / release?
  5. Graphics intensity → стандартный UI / средняя 3D / тяжёлая графика / Metal?

Если задача связана с Metal, GPU, рендерингом, шейдерами, TBDR, MetalFX, GPU profiling, frame pacing, PSO, heaps, ICB, MTLIO → читать references/metal-graphics.md первым.

Then read the relevant reference file before writing code.


Reference files — read when needed

TopicFileWhen to read
SwiftUI pipelinereferences/swiftui.mdSwiftUI views, state, bindings, modifiers, animations
UIKit pipelinereferences/uikit.mdUIViewController, Auto Layout, delegates, storyboards
Architecturereferences/architecture.mdMVVM, TCA, VIPER, Clean, Coordinator
Networkingreferences/networking.mdURLSession, async/await, REST/GraphQL, auth
Data persistencereferences/data.mdCoreData, SwiftData, UserDefaults, Keychain, FileManager
Navigationreferences/navigation.mdNavigationStack, Coordinator, deep links, sheets
Performancereferences/performance.mdInstruments, memory, launch time, rendering
Metal & Heavy Graphicsreferences/metal-graphics.mdMetal, GPU рендер, TBDR, PSO/heaps/argument buffers, ICB, MTLIO, MetalFX, терморегуляция, профилирование GPU

iOS version matrix (API availability)

FeatureMin iOS
SwiftUIiOS 13
async/awaitiOS 15
NavigationStackiOS 16
SwiftDataiOS 17
@Observable macroiOS 17
RippleEffect, ScrollView phasesiOS 18

Always check target before using newer APIs. Use #available guards for backward compatibility:

swift
if #available(iOS 17, *) {
    // SwiftData or @Observable
} else {
    // fallback
}

Core Swift patterns (always apply)

Concurrency — async/await first

swift
// Prefer this
func loadUser() async throws -> User {
    let data = try await URLSession.shared.data(from: url).0
    return try JSONDecoder().decode(User.self, from: data)
}

// Call site
Task {
    do {
        user = try await loadUser()
    } catch {
        errorMessage = error.localizedDescription
    }
}

Error handling — typed errors

swift
enum AppError: LocalizedError {
    case networkUnavailable
    case decodingFailed(String)
    case unauthorized
    
    var errorDescription: String? {
        switch self {
        case .networkUnavailable: return "No internet connection"
        case .decodingFailed(let detail): return "Data error: \(detail)"
        case .unauthorized: return "Please sign in again"
        }
    }
}

Value types first

Prefer struct over class unless you need reference semantics, inheritance, or @Observable.


Architecture decision tree

Is the screen purely data-display with simple interaction?
  YES → MVC / simple SwiftUI View with @State is fine
  NO ↓

Is business logic testable without UI?
  Required → use ViewModel (MVVM) or Store (TCA)

Is navigation/routing complex (deep links, coordinator)?
  YES → read references/navigation.md → Coordinator pattern

Is the team large or is this a long-lived product?
  YES → Clean Architecture or TCA → read references/architecture.md

Default for most apps: MVVM + Coordinator

State management quick reference

SwiftUI state hierarchy

Local transient state       → @State
Passed from parent          → @Binding
Shared across views         → @StateObject / @ObservedObject (iOS 16-)
                            → @State with @Observable class (iOS 17+)
App-wide environment        → @EnvironmentObject / @Environment

iOS 17+ preferred (@Observable)

swift
@Observable
class UserStore {
    var users: [User] = []
    var isLoading = false
}

// In View — no property wrapper needed
struct UserListView: View {
    var store: UserStore  // just pass it
    var body: some View {
        List(store.users) { Text($0.name) }
    }
}

iOS 16 and below (ObservableObject)

swift
class UserViewModel: ObservableObject {
    @Published var users: [User] = []
    @Published var isLoading = false
}

struct UserListView: View {
    @StateObject private var vm = UserViewModel()
}

Xcode & project setup checklist

New project:

  • Set deployment target explicitly
  • Enable Swift strict concurrency warnings (SWIFT_STRICT_CONCURRENCY = complete)
  • Add .gitignore for Xcode (xcuserdata, DerivedData)
  • Configure signing (automatic vs manual)
  • Set bundle ID and version/build numbers

Capabilities to enable when needed:

  • Push Notifications → add Push Notifications capability
  • Background fetch → Background Modes
  • iCloud/CloudKit → iCloud
  • Sign in with Apple → Sign In with Apple

Testing baseline

swift
// Unit test — ViewModel
@MainActor
final class UserViewModelTests: XCTestCase {
    func testLoadUsers() async throws {
        let vm = UserViewModel(service: MockUserService())
        await vm.loadUsers()
        XCTAssertFalse(vm.users.isEmpty)
    }
}

// UI test — basic
func testLoginFlow() {
    let app = XCUIApplication()
    app.launch()
    app.textFields["Email"].tap()
    app.textFields["Email"].typeText("test@example.com")
    app.buttons["Continue"].tap()
    XCTAssertTrue(app.navigationBars["Home"].exists)
}

Common pitfalls

PitfallFix
Purple warning: "Publishing changes from background thread"Wrap in await MainActor.run { } or mark func @MainActor
View re-renders too oftenAudit @State/@Published — split large ViewModels
Memory leak in closuresUse [weak self] captures in escaping closures
@StateObject recreatedMove object creation up the tree; don't init in body
Keyboard covering text fieldUse .ignoresSafeArea(.keyboard, edges: .bottom) or ScrollView
Slow listUse LazyVStack or List with id: stability
Simulator ≠ device behaviorAlways test on real device before submission
Metal: CPU↔GPU stallTriple buffer + DispatchSemaphore; никогда не ждать GPU синхронно в draw()
Metal: PSO компилируется в рантаймеСоздавать все PSO до первого кадра, кешировать
Metal: лишние load/storestoreAction = .dontCare для transient (depth buffer)
Metal: OOM jetsamМониторить currentAllocatedSize vs recommendedMaxWorkingSetSize; освобождать при warning
Metal: статтер при загрузкеMTLIO + MTLSharedEvent вместо блокирующей загрузки; ODR для тяжёлых ассетов
Metal: перегревПодписаться на thermalStateDidChangeNotification, адаптировать render scale + FPS

Hardware budget ориентиры (GPU capability levels)

Планировать по capability-уровням, не под конкретную модель. Всегда включать adaptive quality.

УровеньSoCРеалистичный targetКлючевые ограничения
Широкий охватA13–A15 (iPhone SE, 13, 14)30–60 FPS, агрессивный render scaleСтрогий бюджет RT; MetalFX обязателен для сложных сцен
СреднийA16 (iPhone 15), M160 FPS при хорошем пайплайнеMetalFX + динамический render scale
ФлагманA17 Pro (iPhone 15 Pro), M3+60–120 FPS, тяжёлые эффектыRay tracing (аппаратный); всё равно нужен thermal management

Важно: даже флагманы упираются в термальную стабильность при длительной нагрузке, а не в пиковую мощность GPU.


App Store submission checklist

  • Increment build number for every TestFlight upload
  • Privacy manifest (PrivacyInfo.xcprivacy) required for sensitive APIs
  • App icons all sizes provided (use Asset Catalog)
  • Screenshots for all required device sizes
  • Export compliance (encryption questions)
  • App Review Information filled in
  • No UIRequiresFullScreen = NO without iPad support reasoning

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Ios Development AI 技能有什么作用?

Comprehensive iOS app development skill. Use this skill for ANY iOS-related task: writing Swift/SwiftUI/UIKit code, architecting apps, debugging crashes, setting up navigation, networking, data persistence, animations, performance optimization, App Store submission, Xcode configuration. Trigger when user mentions: iOS, Swift, SwiftUI, UIKit, Xcode, iPhone/iPad app, Combine, CoreData, SwiftData, MVVM, TCA, URLSession, async/await, @State/@Binding/@ObservableObject, NavigationStack, XCTest, TestFlight, provisioning profiles, or any Apple platform development. Always use this skill before writ...

为什么在 TypingMind 中使用 Ios Development?

因为您只需安装一次,就能搭配任何模型使用。Ios Development 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Ios Development?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/AnastasiyaW/codex-claude-code-config/tree/main/skills/ios/ios-development。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Ios Development?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Ios Development 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Ios Development 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Ios Development AI 技能免费吗?

是的。AnastasiyaW 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇