What problem does it solve?
Senior-level guidance for developers who need to design and implement type-safe, concurrent, and performant Apple platform applications using Swift 5.9+, SwiftUI, and modern concurrency patterns. It reduces architecture mistakes, concurrency bugs, and API misuse by enforcing protocol-oriented design, Sendable compliance, and testable components.
Core Features & Use Cases
- Protocol-first architecture: advice and patterns to design protocols with associated types, type erasure, and conditional conformance for reusable abstractions.
- Concurrency & safety: actor-based state management, structured concurrency examples, Sendable guidance, and patterns to avoid race conditions and retain cycles.
- SwiftUI & integration: state management (@State, @StateObject, @ObservedObject, @EnvironmentObject), custom layouts, view modifiers, and mixing UIKit when necessary.
- Performance & testing: profiling tips, memory/performance optimization, XCTest async tests, and mocking strategies for reliable unit and UI tests.
- Real-world scenario: design a SwiftUI app with an actor-backed cache, protocol-driven networking layer, and XCTest coverage for async flows.
Quick Start
Use the swift-expert skill to design a protocol-oriented SwiftUI view that loads data asynchronously with actor-backed caching and includes a unit test verifying cancellation and concurrency safety.