Swift Language Expert

Use this skill for non-obvious Swift LANGUAGE and standard-library techniques -- features that make code clearer, safer, or faster but that developers routinely miss. Covers pattern matching (if/guard-case, switch over tuples); functions, closures, and key paths (variadics, autoclosures, rethrows); value semantics and custom types (copy-on-write, ~Copyable, callAsFunction, recursive enums, property wrappers); protocols and generics (associated types, opaque some vs existential any, phantom types, hand-rolled type erasure); collections (lazy, RangeSet, InlineArray, sorting); strings and Unicode (grapheme-correct iteration, custom interpolation); concurrency and errors (async/await, task groups, AsyncStream, typed throws, custom global actors, Mutex and the Synchronization framework, and the nonisolated(unsafe)/assumeIsolated/@preconcurrency escape hatches); and debugging and code organization (assertions, dump, enum namespaces, directives). Trigger for "how do I do X in Swift" and idiomatic refactors. Do NOT u

SwiftyJourney Updated

File contents

SwiftyJourney/swift-language-expert-skill/tree/main/skills/swift-language-expert commit a523cea69e

Frequently asked questions

npx skillmds@latest add swiftyjourney/swift-language-expert