{"enrichment":{"faq":[{"a":"Swift Development emphasizes structured concurrency using async/await and actors to prevent data races. Key practices include isolating mutable state within actors, using async let for concurrent tasks, TaskGroup for dynamic task collections, and @MainActor for UI thread safety. Apply Sendable constraints to ensure type-safe data sharing across isolation domains, and leverage nonisolated declarations judiciously in Swift 6 strict concurrency mode.","q":"What are swift concurrency best practices?"},{"a":"Swift Development guides Swift 6 strict concurrency migration by identifying actor isolation violations and data race errors in your codebase. It explains how to adopt Sendable protocols, resolve reentrancy issues, and use nonisolated and nonsending annotations appropriately. The skill helps you incrementally enable strict concurrency checking and refactor legacy callback-based APIs using continuations for safer async integration.","q":"How does Swift Development help migrate to Swift 6 strict concurrency?"},{"a":"Swift Development covers memory optimization through low-level constructs like InlineArray and Span to eliminate heap allocations. It teaches Swift's cost model\u2014how ARC, value semantics, and allocation patterns affect performance. The skill guides unsafe pointer replacement with safer alternatives, profiling with Instruments, and applying SwiftLint complexity thresholds to maintain efficient, maintainable code across iOS, macOS, and other Apple platforms.","q":"How can I optimize Swift performance by reducing allocations and memory overhead?"},{"a":"Swift Development explains async/await as the foundation for readable, safe concurrent code, replacing callback pyramids. Actors provide isolation boundaries for mutable state, preventing data races automatically. Structured concurrency ensures tasks are scoped and cancelled predictably. The skill covers async let for concurrent bindings, TaskGroup for dynamic parallelism, and @MainActor isolation for UI safety\u2014core patterns for modern Swift concurrency architecture.","q":"What does Swift Development teach about async/await, actors, and structured concurrency?"},{"a":"Swift Development uses SwiftLint complexity thresholds and rules to enforce consistent, maintainable code standards. It guides configuration of cyclomatic complexity limits, line length, and other metrics to catch quality regressions early. Combined with concurrency reviews and performance optimization, SwiftLint integration helps teams maintain modern Swift idioms and prevent technical debt in iOS, macOS, and cross-platform Apple development.","q":"How does Swift Development apply SwiftLint rules to code quality?"},{"a":"Swift Development teaches modern idioms including structured concurrency with async/await and actors, Sendable protocol adoption, @MainActor and nonisolated isolation attributes, and safe bridging of legacy APIs via continuations. It emphasizes value semantics, protocol-oriented design, and efficient memory management through InlineArray and Span. These patterns ensure your Swift code is correct, performant, and aligned with Swift 6 best practices across Apple platforms.","q":"What modern Swift patterns and idioms does this skill cover?"}],"shadow_tags":["async-await-patterns","concurrency-architecture","memory-optimization","actor-model","code-quality-metrics","performance-profiling","strict-safety","heap-allocation","language-modernization"],"summary_rewrite":"Swift Development provides language-level guidance for writing correct, performant Swift across iOS, macOS, and other Apple platforms. It covers concurrency architecture with async/await and actors, Swift 6 strict concurrency migration, memory optimization through InlineArray and Span, and code complexity standards via SwiftLint thresholds. Use it to review code for data races, actor isolation, and modern idioms."},"files":[{"bytes":2910,"path":"skills/swift/SKILL.md","sha256":"be0da076b01ae1e7fb6598da29518252b4b8b5a5d5252bde456391309b5767e6","url":"https://skillfed.io/files/rshankras/claude-code-apple-skills/swift/879fe72f/SKILL.md"}],"id":"rshankras/claude-code-apple-skills/swift","links":{"html":"https://skillfed.io/rshankras/claude-code-apple-skills/swift","md":"https://skillfed.io/rshankras/claude-code-apple-skills/swift.md","repo":"https://github.com/rshankras/claude-code-apple-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":47,"language":"Swift","last_updated":"2026-07-24","license":"MIT","name":"swift-development","publisher":"rshankras","stars":565},"relations":{"similar":[{"id":"rshankras/claude-code-apple-skills/concurrency-patterns"},{"id":"rshankras/claude-code-apple-skills/concurrency"},{"id":"sammcj/agentic-coding/swift-development"},{"id":"jamesrochabrun/skills/swift-concurrency"},{"id":"rshankras/claude-code-apple-skills/memory"},{"id":"johnrogers/claude-swift-engineering/modern-swift"},{"id":"dpearson2699/swift-ios-skills/swift-concurrency"},{"id":"CharlesWiltgen/Axiom/axiom-concurrency"},{"id":"CharlesWiltgen/Axiom/axiom-audit-concurrency"},{"id":"Dimillian/Skills/swift-concurrency-expert"}]},"slug":{"owner":"rshankras","repo":"claude-code-apple-skills","skill":"swift"},"version":"879fe72f"}
