Agent skill · software engineering · personamanagmentlayer
swift-expert
Expert-level Swift development for iOS, macOS with SwiftUI, Combine, and modern Swift 5.9+. Use when the user mentions iOS, macOS, SwiftUI, Combine, async await, or Apple platforms, or when the task involves Modern Swift Features, Basics and Optionals, Functions and Closures, or Structs and Classes.
Why this skill is useful
Provides advanced Swift development patterns and async/await examples that enhance the AI's ability to generate modern Swift code.
What it needs
About 5k tokens when loaded. Last updated 2026-03-30. 41 stars on the source repository.
What this skill does
Swift Expert Expert guidance for Swift development including iOS/macOS apps, SwiftUI, Combine, async/await, and Swift 5.9+ features. Core Concepts Modern Swift Features (5.9+) Async/await concurrency Actors for thread safety Property wrappers Result builders Protocols and generics Value types vs reference types Automatic Reference Counting (ARC) Macros (Swift 5.9+) SwiftUI Declarative UI framework State management View composition Layout system Animations Navigation Combine Reactive programming Publishers and subscribers Operators Error handling SwiftUI Basic Views State Management Lists and Navigation Custom Modifiers Networking Combine Framework Testing Best Practices Code Organization Use MVVM pattern for SwiftUI Separate business logic from views Use dependency injection Keep views small and composable Memory Management Understand ARC (Automatic Reference Counting) Use weak references for delegates Break retain cycles with [weak self] or [unowned self] Use actors for mutable shared state Performance Use lazy loading where appropriate Avoid unnecessary view updates Profile with Instruments Use value types (structs) by default Swift Concurrency Prefer async/await over completion handlers Use actors for thread-safe mutable state Use @MainActor for UI updates Avoid blocking the main thread Anti-Patterns to Avoid ❌ Force unwrapping: Use optional binding instead ❌ Massive view controllers: Extract logic to view models ❌ Strong reference cycles: Use weak/unowned references ❌ Blocking main thread: Use async/await ❌ Ignoring memory warnings: Handle memory pressure ❌ Not using guard: Use guard for early exits ❌ Implicit unwrapping: Prefer explicit optionals Reference Documentation Detailed material lives alongside this skill and is read on demand: Swift Syntax — Basics and Optionals, Functions and Closures, Structs and Classes, Enums, Async/Await (Swift 5.5+), Actors (Thread Safety) Resources Swift Documentation: https://swift.org/documentation/ SwiftUI Tutorials: https:/ …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills personamanagmentlayer/swift-expert