Applies modern Swift 6.4 language patterns including expressions, typed throws, generics, protocols, result builders, property wrappers, opaque and existential types, regexes, and collections. Routes concurrency, Codable, formatting, and API naming to specialist skills.
Ships in all-ios-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Apply modern Swift 6.4 syntax and idioms (Swift 6.4 / Xcode 27 additions: references/swift-6-4.md) without altering behavior or evaluation order. Route concurrency to swift-concurrency, deep serialization to swift-codable, formatting to swift-formatstyle, naming to swift-api-design-guidelines, and SwiftUI state to swiftui-patterns.
Use value-producing if and switch expressions for direct assignment, initialization, and single-expression returns:
// Direct variable initialization from expression
let statusColor = switch order.status {
case .pending: Color.orange
case .completed: Color.green
case .failed: Color.red
}
let badge = if isFeatured { "star.fill" } else { "circle" }
Every branch must produce identical value types without multi-statement bodies.
Specify concrete error types when callers benefit from exhaustive compile-time error handling:
enum PaymentError: Error {
case cardExpired, insufficientFunds
}
func processPayment() throws(PaymentError) {
guard hasFunds else { throw .insufficientFunds }
}
// Caller error handling is exhaustive without casting
do {
try processPayment()
} catch {
switch error {
case .cardExpired: promptNewCard()
case .insufficientFunds: promptDeposit()
}
}
Use throws(Never) for non-throwing conformance in generic protocols. For mixed or open error sources, retain untyped throws.
some Protocol (Opaque): Preferred for return and parameter types. Preserves underlying static type information, enables compiler optimizations, and avoids existential container allocation overhead.any Protocol (Existential): Use only when dynamic heterogeneous collections or runtime polymorphism is explicitly required (e.g. [any Plugin]).// Parameter pack / opaque parameter
func render(item: some Displayable) { ... }
// Heterogeneous collection requires existential boxing
let plugins: [any Plugin] = [AudioPlugin(), VisualPlugin()]
@resultBuilder: Construct declarative DSLs by implementing buildBlock, buildOptional, and buildEither.@propertyWrapper: Encapsulate reusable property storage or validation via wrappedValue and projected projectedValue ($).@propertyWrapper
struct Clamped<T: Comparable> {
var value: T
let range: ClosedRange<T>
var wrappedValue: T {
get { value }
set { value = min(max(newValue, range.lowerBound), range.upperBound) }
}
}
#/pattern/# with typed capture groups and RegexBuilder.contains(where:), allSatisfy, min(by:), and non-mutating transformations.any instead of some: Using any Protocol incurs existential boxing costs and suppresses type relationship inference. Prefer some Protocol.throws(MyError) on functions that wrap URLSession or system APIs requires fragile error translation. Use untyped throws for mixed errors.if/switch expressions only evaluate single-expression branches. Multi-line logic requires traditional statements.if/switch used for concise variable initializationthrows(SpecificError) used only where callers genuinely need exhaustive handlingsome Protocol chosen over any Protocol unless heterogeneous storage is requiredRegexBuilderanyAppleOS, @diagnose, Iterable): references/swift-6-4.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/all-ios-skills:swift-languagefrom all-ios-skills
npx claudepluginhub thienqo/ios-skills --plugin all-ios-skills95 skills in this plugin
/accessorysetupkitDiscover and configure Bluetooth and Wi-Fi accessories using AccessorySetupKit. Use when presenting a privacy-preserving accessory picker, defining discovery descriptors for BLE or Wi-Fi devices, handling accessory session events, migrating from CoreBluetooth permission-based scanning, or setting up accessories without requiring broad Bluetooth permissions./activitykitBuild or review Live Activities and Dynamic Island experiences with ActivityKit, including lifecycle, layouts, push updates, and scheduled delivery. Use for time-sensitive Lock Screen or Dynamic Island state; route ordinary widgets to widgetkit./adattributionkitMeasure ad effectiveness with privacy-preserving attribution using AdAttributionKit. Use when registering ad impressions, handling attribution postbacks, updating conversion values, implementing re-engagement attribution, configuring publisher or advertiser apps, or replacing SKAdNetwork with AdAttributionKit for ad measurement.Other plugins' skills for the same job