[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6G2CW3A0F56F36V64YZJ8V7":3,"skill-same:01M6G2CW3A0F56F36V64YZJ8V7":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":23,"linkOnly":24,"markdownContent":25,"markdownBody":26,"frontMatter":27,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M6G2CW3A0F56F36V64YZJ8V7","swift-concurrency-6-2",null,"Swift 6.2 可接近的并发性 — 默认单线程，@concurrent 用于显式后台卸载，隔离一致性用于主 actor 类型。","oabdelmaksoud\u002FAgention","oabdelmaksoud","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F50699149?v=4","01M6D5CVVN778ZCDP1WHS816SP","Omar Abdelmaksoud","01M6D8A4TE76V3DCSH3D94VG1V",2,"MIT","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fdocs\u002Fzh-CN\u002Fskills\u002Fswift-concurrency-6-2\u002FSKILL.md",[],[19,20,21,22],"swift","concurrency","swift concurrency","swift concurrency 6 2","2026-11-10 10:12:30",false,"---\nname: swift-concurrency-6-2\ndescription: Swift 6.2 可接近的并发性 — 默认单线程，@concurrent 用于显式后台卸载，隔离一致性用于主 actor 类型。\n---\n\n# Swift 6.2 可接近的并发\n\n采用 Swift 6.2 并发模型的模式，其中代码默认在单线程上运行，并发是显式引入的。在无需牺牲性能的情况下消除常见的数据竞争错误。\n\n## 何时启用\n\n* 将 Swift 5.x 或 6.0\u002F6.1 项目迁移到 Swift 6.2\n* 解决数据竞争安全编译器错误\n* 设计基于 MainActor 的应用架构\n* 将 CPU 密集型工作卸载到后台线程\n* 在 MainActor 隔离的类型上实现协议一致性\n* 在 Xcode 26 中启用“可接近的并发”构建设置\n\n## 核心问题：隐式的后台卸载\n\n在 Swift 6.1 及更早版本中，异步函数可能会被隐式卸载到后台线程，即使在看似安全的代码中也会导致数据竞争错误：\n\n```swift\n\u002F\u002F Swift 6.1: ERROR\n@MainActor\nfinal class StickerModel {\n    let photoProcessor = PhotoProcessor()\n\n    func extractSticker(_ item: PhotosPickerItem) async throws -> Sticker? {\n        guard let data = try await item.loadTransferable(type: Data.self) else { return nil }\n\n        \u002F\u002F Error: Sending 'self.photoProcessor' risks causing data races\n        return await photoProcessor.extractSticker(data: data, with: item.itemIdentifier)\n    }\n}\n```\n\nSwift 6.2 修复了这个问题：异步函数默认保持在调用者所在的 actor 上。\n\n```swift\n\u002F\u002F Swift 6.2: OK — async stays on MainActor, no data race\n@MainActor\nfinal class StickerModel {\n    let photoProcessor = PhotoProcessor()\n\n    func extractSticker(_ item: PhotosPickerItem) async throws -> Sticker? {\n        guard let data = try await item.loadTransferable(type: Data.self) else { return nil }\n        return await photoProcessor.extractSticker(data: data, with: item.itemIdentifier)\n    }\n}\n```\n\n## 核心模式 — 隔离的一致性\n\nMainActor 类型现在可以安全地符合非隔离协议：\n\n```swift\nprotocol Exportable {\n    func export()\n}\n\n\u002F\u002F Swift 6.1: ERROR — crosses into main actor-isolated code\n\u002F\u002F Swift 6.2: OK with isolated conformance\nextension StickerModel: @MainActor Exportable {\n    func export() {\n        photoProcessor.exportAsPNG()\n    }\n}\n```\n\n编译器确保该一致性仅在主 actor 上使用：\n\n```swift\n\u002F\u002F OK — ImageExporter is also @MainActor\n@MainActor\nstruct ImageExporter {\n    var items: [any Exportable]\n\n    mutating func add(_ item: StickerModel) {\n        items.append(item)  \u002F\u002F Safe: same actor isolation\n    }\n}\n\n\u002F\u002F ERROR — nonisolated context can't use MainActor conformance\nnonisolated struct ImageExporter {\n    var items: [any Exportable]\n\n    mutating func add(_ item: StickerModel) {\n        items.append(item)  \u002F\u002F Error: Main actor-isolated conformance cannot be used here\n    }\n}\n```\n\n## 核心模式 — 全局和静态变量\n\n使用 MainActor 保护全局\u002F静态状态：\n\n```swift\n\u002F\u002F Swift 6.1: ERROR — non-Sendable type may have shared mutable state\nfinal class StickerLibrary {\n    static let shared: StickerLibrary = .init()  \u002F\u002F Error\n}\n\n\u002F\u002F Fix: Annotate with @MainActor\n@MainActor\nfinal class StickerLibrary {\n    static let shared: StickerLibrary = .init()  \u002F\u002F OK\n}\n```\n\n### MainActor 默认推断模式\n\nSwift 6.2 引入了一种模式，默认推断 MainActor — 无需手动标注：\n\n```swift\n\u002F\u002F With MainActor default inference enabled:\nfinal class StickerLibrary {\n    static let shared: StickerLibrary = .init()  \u002F\u002F Implicitly @MainActor\n}\n\nfinal class StickerModel {\n    let photoProcessor: PhotoProcessor\n    var selection: [PhotosPickerItem]  \u002F\u002F Implicitly @MainActor\n}\n\nextension StickerModel: Exportable {  \u002F\u002F Implicitly @MainActor conformance\n    func export() {\n        photoProcessor.exportAsPNG()\n    }\n}\n```\n\n此模式是选择启用的，推荐用于应用、脚本和其他可执行目标。\n\n## 核心模式 — 使用 @concurrent 进行后台工作\n\n当需要真正的并行性时，使用 `@concurrent` 显式卸载：\n\n> **重要：** 此示例需要启用“可接近的并发”构建设置 — SE-0466 (MainActor 默认隔离) 和 SE-0461 (默认非隔离非发送)。启用这些设置后，`extractSticker` 会保持在调用者所在的 actor 上，使得可变状态的访问变得安全。**如果没有这些设置，此代码存在数据竞争** — 编译器会标记它。\n\n```swift\nnonisolated final class PhotoProcessor {\n    private var cachedStickers: [String: Sticker] = [:]\n\n    func extractSticker(data: Data, with id: String) async -> Sticker {\n        if let sticker = cachedStickers[id] {\n            return sticker\n        }\n\n        let sticker = await Self.extractSubject(from: data)\n        cachedStickers[id] = sticker\n        return sticker\n    }\n\n    \u002F\u002F Offload expensive work to concurrent thread pool\n    @concurrent\n    static func extractSubject(from data: Data) async -> Sticker { \u002F* ... *\u002F }\n}\n\n\u002F\u002F Callers must await\nlet processor = PhotoProcessor()\nprocessedPhotos[item.id] = await processor.extractSticker(data: data, with: item.id)\n```\n\n要使用 `@concurrent`：\n\n1. 将包含类型标记为 `nonisolated`\n2. 向函数添加 `@concurrent`\n3. 如果函数还不是异步的，则添加 `async`\n4. 在调用点添加 `await`\n\n## 关键设计决策\n\n| 决策 | 原理 |\n|----------|-----------|\n| 默认单线程 | 最自然的代码是无数据竞争的；并发是选择启用的 |\n| 异步函数保持在调用者所在的 actor 上 | 消除了导致数据竞争错误的隐式卸载 |\n| 隔离的一致性 | MainActor 类型可以符合协议，而无需不安全的变通方法 |\n| `@concurrent` 显式选择启用 | 后台执行是一种有意的性能选择，而非偶然 |\n| MainActor 默认推断 | 减少了应用目标中样板化的 `@MainActor` 标注 |\n| 选择启用采用 | 非破坏性的迁移路径 — 逐步启用功能 |\n\n## 迁移步骤\n\n1. **在 Xcode 中启用**：构建设置中的 Swift Compiler > Concurrency 部分\n2. **在 SPM 中启用**：在包清单中使用 `SwiftSettings` API\n3. **使用迁移工具**：通过 swift.org\u002Fmigration 进行自动代码更改\n4. **从 MainActor 默认值开始**：为应用目标启用推断模式\n5. **在需要的地方添加 `@concurrent`**：先进行性能分析，然后卸载热点路径\n6. **彻底测试**：数据竞争问题会变成编译时错误\n\n## 最佳实践\n\n* **从 MainActor 开始** — 先编写单线程代码，稍后再优化\n* **仅对 CPU 密集型工作使用 `@concurrent`** — 图像处理、压缩、复杂计算\n* **为主要是单线程的应用目标启用 MainActor 推断模式**\n* **在卸载前进行性能分析** — 使用 Instruments 查找实际的瓶颈\n* **使用 MainActor 保护全局变量** — 全局\u002F静态可变状态需要 actor 隔离\n* **使用隔离的一致性**，而不是 `nonisolated` 变通方法或 `@Sendable` 包装器\n* **增量迁移** — 在构建设置中一次启用一个功能\n\n## 应避免的反模式\n\n* 对每个异步函数都应用 `@concurrent`（大多数不需要后台执行）\n* 在不理解隔离的情况下使用 `nonisolated` 来抑制编译器错误\n* 当 actor 提供相同安全性时，仍保留遗留的 `DispatchQueue` 模式\n* 在并发相关的 Foundation Models 代码中跳过 `model.availability` 检查\n* 与编译器对抗 — 如果它报告数据竞争，代码就存在真正的并发问题\n* 假设所有异步代码都在后台运行（Swift 6.2 默认：保持在调用者所在的 actor 上）\n\n## 何时使用\n\n* 所有新的 Swift 6.2+ 项目（“可接近的并发”是推荐的默认设置）\n* 将现有应用从 Swift 5.x 或 6.0\u002F6.1 并发迁移过来\n* 在采用 Xcode 26 期间解决数据竞争安全编译器错误\n* 构建以 MainActor 为中心的应用架构（大多数 UI 应用）\n* 性能优化 — 将特定的繁重计算卸载到后台\n","# Swift 6.2 可接近的并发\n\n采用 Swift 6.2 并发模型的模式，其中代码默认在单线程上运行，并发是显式引入的。在无需牺牲性能的情况下消除常见的数据竞争错误。\n\n## 何时启用\n\n* 将 Swift 5.x 或 6.0\u002F6.1 项目迁移到 Swift 6.2\n* 解决数据竞争安全编译器错误\n* 设计基于 MainActor 的应用架构\n* 将 CPU 密集型工作卸载到后台线程\n* 在 MainActor 隔离的类型上实现协议一致性\n* 在 Xcode 26 中启用“可接近的并发”构建设置\n\n## 核心问题：隐式的后台卸载\n\n在 Swift 6.1 及更早版本中，异步函数可能会被隐式卸载到后台线程，即使在看似安全的代码中也会导致数据竞争错误：\n\n```swift\n\u002F\u002F Swift 6.1: ERROR\n@MainActor\nfinal class StickerModel {\n    let photoProcessor = PhotoProcessor()\n\n    func extractSticker(_ item: PhotosPickerItem) async throws -> Sticker? {\n        guard let data = try await item.loadTransferable(type: Data.self) else { return nil }\n\n        \u002F\u002F Error: Sending 'self.photoProcessor' risks causing data races\n        return await photoProcessor.extractSticker(data: data, with: item.itemIdentifier)\n    }\n}\n```\n\nSwift 6.2 修复了这个问题：异步函数默认保持在调用者所在的 actor 上。\n\n```swift\n\u002F\u002F Swift 6.2: OK — async stays on MainActor, no data race\n@MainActor\nfinal class StickerModel {\n    let photoProcessor = PhotoProcessor()\n\n    func extractSticker(_ item: PhotosPickerItem) async throws -> Sticker? {\n        guard let data = try await item.loadTransferable(type: Data.self) else { return nil }\n        return await photoProcessor.extractSticker(data: data, with: item.itemIdentifier)\n    }\n}\n```\n\n## 核心模式 — 隔离的一致性\n\nMainActor 类型现在可以安全地符合非隔离协议：\n\n```swift\nprotocol Exportable {\n    func export()\n}\n\n\u002F\u002F Swift 6.1: ERROR — crosses into main actor-isolated code\n\u002F\u002F Swift 6.2: OK with isolated conformance\nextension StickerModel: @MainActor Exportable {\n    func export() {\n        photoProcessor.exportAsPNG()\n    }\n}\n```\n\n编译器确保该一致性仅在主 actor 上使用：\n\n```swift\n\u002F\u002F OK — ImageExporter is also @MainActor\n@MainActor\nstruct ImageExporter {\n    var items: [any Exportable]\n\n    mutating func add(_ item: StickerModel) {\n        items.append(item)  \u002F\u002F Safe: same actor isolation\n    }\n}\n\n\u002F\u002F ERROR — nonisolated context can't use MainActor conformance\nnonisolated struct ImageExporter {\n    var items: [any Exportable]\n\n    mutating func add(_ item: StickerModel) {\n        items.append(item)  \u002F\u002F Error: Main actor-isolated conformance cannot be used here\n    }\n}\n```\n\n## 核心模式 — 全局和静态变量\n\n使用 MainActor 保护全局\u002F静态状态：\n\n```swift\n\u002F\u002F Swift 6.1: ERROR — non-Sendable type may have shared mutable state\nfinal class StickerLibrary {\n    static let shared: StickerLibrary = .init()  \u002F\u002F Error\n}\n\n\u002F\u002F Fix: Annotate with @MainActor\n@MainActor\nfinal class StickerLibrary {\n    static let shared: StickerLibrary = .init()  \u002F\u002F OK\n}\n```\n\n### MainActor 默认推断模式\n\nSwift 6.2 引入了一种模式，默认推断 MainActor — 无需手动标注：\n\n```swift\n\u002F\u002F With MainActor default inference enabled:\nfinal class StickerLibrary {\n    static let shared: StickerLibrary = .init()  \u002F\u002F Implicitly @MainActor\n}\n\nfinal class StickerModel {\n    let photoProcessor: PhotoProcessor\n    var selection: [PhotosPickerItem]  \u002F\u002F Implicitly @MainActor\n}\n\nextension StickerModel: Exportable {  \u002F\u002F Implicitly @MainActor conformance\n    func export() {\n        photoProcessor.exportAsPNG()\n    }\n}\n```\n\n此模式是选择启用的，推荐用于应用、脚本和其他可执行目标。\n\n## 核心模式 — 使用 @concurrent 进行后台工作\n\n当需要真正的并行性时，使用 `@concurrent` 显式卸载：\n\n> **重要：** 此示例需要启用“可接近的并发”构建设置 — SE-0466 (MainActor 默认隔离) 和 SE-0461 (默认非隔离非发送)。启用这些设置后，`extractSticker` 会保持在调用者所在的 actor 上，使得可变状态的访问变得安全。**如果没有这些设置，此代码存在数据竞争** — 编译器会标记它。\n\n```swift\nnonisolated final class PhotoProcessor {\n    private var cachedStickers: [String: Sticker] = [:]\n\n    func extractSticker(data: Data, with id: String) async -> Sticker {\n        if let sticker = cachedStickers[id] {\n            return sticker\n        }\n\n        let sticker = await Self.extractSubject(from: data)\n        cachedStickers[id] = sticker\n        return sticker\n    }\n\n    \u002F\u002F Offload expensive work to concurrent thread pool\n    @concurrent\n    static func extractSubject(from data: Data) async -> Sticker { \u002F* ... *\u002F }\n}\n\n\u002F\u002F Callers must await\nlet processor = PhotoProcessor()\nprocessedPhotos[item.id] = await processor.extractSticker(data: data, with: item.id)\n```\n\n要使用 `@concurrent`：\n\n1. 将包含类型标记为 `nonisolated`\n2. 向函数添加 `@concurrent`\n3. 如果函数还不是异步的，则添加 `async`\n4. 在调用点添加 `await`\n\n## 关键设计决策\n\n| 决策 | 原理 |\n|----------|-----------|\n| 默认单线程 | 最自然的代码是无数据竞争的；并发是选择启用的 |\n| 异步函数保持在调用者所在的 actor 上 | 消除了导致数据竞争错误的隐式卸载 |\n| 隔离的一致性 | MainActor 类型可以符合协议，而无需不安全的变通方法 |\n| `@concurrent` 显式选择启用 | 后台执行是一种有意的性能选择，而非偶然 |\n| MainActor 默认推断 | 减少了应用目标中样板化的 `@MainActor` 标注 |\n| 选择启用采用 | 非破坏性的迁移路径 — 逐步启用功能 |\n\n## 迁移步骤\n\n1. **在 Xcode 中启用**：构建设置中的 Swift Compiler > Concurrency 部分\n2. **在 SPM 中启用**：在包清单中使用 `SwiftSettings` API\n3. **使用迁移工具**：通过 swift.org\u002Fmigration 进行自动代码更改\n4. **从 MainActor 默认值开始**：为应用目标启用推断模式\n5. **在需要的地方添加 `@concurrent`**：先进行性能分析，然后卸载热点路径\n6. **彻底测试**：数据竞争问题会变成编译时错误\n\n## 最佳实践\n\n* **从 MainActor 开始** — 先编写单线程代码，稍后再优化\n* **仅对 CPU 密集型工作使用 `@concurrent`** — 图像处理、压缩、复杂计算\n* **为主要是单线程的应用目标启用 MainActor 推断模式**\n* **在卸载前进行性能分析** — 使用 Instruments 查找实际的瓶颈\n* **使用 MainActor 保护全局变量** — 全局\u002F静态可变状态需要 actor 隔离\n* **使用隔离的一致性**，而不是 `nonisolated` 变通方法或 `@Sendable` 包装器\n* **增量迁移** — 在构建设置中一次启用一个功能\n\n## 应避免的反模式\n\n* 对每个异步函数都应用 `@concurrent`（大多数不需要后台执行）\n* 在不理解隔离的情况下使用 `nonisolated` 来抑制编译器错误\n* 当 actor 提供相同安全性时，仍保留遗留的 `DispatchQueue` 模式\n* 在并发相关的 Foundation Models 代码中跳过 `model.availability` 检查\n* 与编译器对抗 — 如果它报告数据竞争，代码就存在真正的并发问题\n* 假设所有异步代码都在后台运行（Swift 6.2 默认：保持在调用者所在的 actor 上）\n\n## 何时使用\n\n* 所有新的 Swift 6.2+ 项目（“可接近的并发”是推荐的默认设置）\n* 将现有应用从 Swift 5.x 或 6.0\u002F6.1 并发迁移过来\n* 在采用 Xcode 26 期间解决数据竞争安全编译器错误\n* 构建以 MainActor 为中心的应用架构（大多数 UI 应用）\n* 性能优化 — 将特定的繁重计算卸载到后台\n",{"name":5,"description":7},"main","a318f48de3c5718e8ea2e9f6fae7790e8a759e85","upstream-sync\u002Fwork\u002Fecc\u002Fdocs\u002Fzh-CN\u002Fskills\u002Fswift-concurrency-6-2",0,"https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud","https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fo-abdelmaksoud\u002F","Full-Stack Engineer | AI Systems Architect | Building autonomous multi-agent systems","2026-03-08 21:23:03",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add oabdelmaksoud\u002FAgention --skill swift-concurrency-6-2",{"tool":43,"command":44},"bunx","bunx skills add oabdelmaksoud\u002FAgention --skill swift-concurrency-6-2",{"tool":46,"command":47},"pnpm","pnpm dlx skills add oabdelmaksoud\u002FAgention --skill swift-concurrency-6-2","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fdocs\u002Fzh-CN\u002Fskills\u002Fswift-concurrency-6-2\u002FSKILL.md",true,[],[52,71,85,107,133,151],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":23},"01M6G2QFCBNBYAJF2KTK85G9A6","visa-doc-translate","Translate visa application documents (images) to English and create a bilingual PDF with original and translation","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fskills\u002Fvisa-doc-translate\u002FSKILL.md",[],[59,60,61,62,63,64,65,66,67,68,69,70],"translate","doc","visa doc translate","bilingual","with","english","application","PDF","translation","documents","create","images",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":23},"01M6G2QB09TSK6BY4ME5X20EVQ","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[78,79,80,81,82,83,84],"verification","loop","verification loop","sessions","code","claude code sessions","system",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":23},"01M6G2Q6V2F7G03VAAF27FXPJR","tdd-workflow","Use this skill when writing new features, fixing bugs, or refactoring code. Enforces test-driven development with 80%+ coverage including unit, integration, and E2E tests.","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fskills\u002Ftdd-workflow\u002FSKILL.md",[],[92,93,94,95,96,97,98,99,100,82,101,102,103,104,63,105,106],"workflow","tdd","tdd workflow","use","unit","coverage","refactoring","e2e","integration","development","e2e tests","tests","driven","test","writing",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":23},"01M6G2Q359YJRWAR2PFCEQAXF3","swiftui-patterns","SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS\u002FmacOS UI best practices.","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fskills\u002Fswiftui-patterns\u002FSKILL.md",[],[114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,63],"patterns","swiftui","swiftui patterns","architecture","macos","performance","state management","best practices","state","ui","Optimization","ios","architecture patterns","Composition","performance optimization","view","management","swiftui architecture","navigation",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":23},"01M6G2PY8B2FWZTWPZ84H83Y7C","swift-protocol-di-testing","Protocol-based dependency injection for testable Swift code — mock file system, network, and external APIs using focused protocols and Swift Testing.","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fskills\u002Fswift-protocol-di-testing\u002FSKILL.md",[],[140,141,19,142,82,143,144,145,146,84,147,148,149,150],"swift protocol di testing","protocol","testing","protocols","file","network","injection","dependency","swift testing","dependency injection","mock",{"skillNo":152,"name":5,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":23},"01M6G2PSCN2GXV9FFZDRRRWVB6","Swift 6.2 Approachable Concurrency — single-threaded by default, @concurrent for explicit background offloading, isolated conformances for main actor types.","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fskills\u002Fswift-concurrency-6-2\u002FSKILL.md",[],[20,21,22,19,157,28,158],"default","types"]