Swift & SwiftUI Expert

Generate Swift and SwiftUI code for iOS 17+ and macOS 14+ apps.

110|9|Updated Dec 16, 2025
One-click install
npx skills add https://github.com/ojowwalker77/Claude-Matrix --skill swift-swiftui-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Swift & SwiftUI Expert
Source: https://github.com/ojowwalker77/Claude-Matrix/tree/main/skills/swift-swiftui
Command: npx skills add https://github.com/ojowwalker77/Claude-Matrix --skill swift-swiftui-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides expert, opinionated guidance to write, refactor, and fix Swift and SwiftUI code so developers can produce reliable, maintainable apps that follow modern platform conventions and avoid common pitfalls.

Core Features & Use Cases

  • Modern state management: Guidance on using @Observable, @Bindable, @State and bindings for iOS 17+/macOS 14+ apps.
  • Architecture & patterns: Recommendations for MVVM with @Observable, TCA for large apps, Clean Architecture, and dependency injection.
  • Concurrency, persistence, and testing: Best practices for async/await, actors, SwiftData models/queries, and unit/UI testing strategies.
  • Performance & accessibility: Advice for List/Lazy stacks, avoiding anti-patterns that break lazy loading, and making accessible SwiftUI UIs.
  • Code generation guidelines: Rules for target platform versions, navigation, property wrappers, error handling, and accessibility annotations.

Quick Start

Refactor this view to use @Observable, NavigationStack, and async/await with proper accessibility and error handling.

Frequently Asked Questions about Swift & SwiftUI Expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor SwiftUI views to use @Observable and @Bindable for iOS 17+?

To refactor SwiftUI views for iOS 17+, use @Observable for view models and @Bindable in views to create bindings. This modern state management approach replaces older ObservableObject and @Published patterns.

What's the best way to handle Swift concurrency with async/await in SwiftUI?

The best way to handle Swift concurrency in SwiftUI is using async/await with actors for safe data access. This approach integrates smoothly with modern navigation flows and view models for asynchronous tasks.

Does this Swift guidance support architecture patterns like MVVM and Clean Architecture?

Yes, this Swift guidance supports architecture patterns like MVVM with @Observable, Clean Architecture, and TCA for large apps. It provides recommendations for dependency injection and scalable state management.

How do I improve List performance and lazy loading in modern SwiftUI?

To improve List performance in SwiftUI, use List and Lazy stacks while avoiding anti-patterns that break lazy loading. Properly structuring views ensures optimal rendering for large data sets.

Can I use SwiftData for persistence alongside async/await in macOS 14+ apps?

Yes, you can use SwiftData models and queries for persistence alongside async/await in macOS 14+ apps. This combination allows for modern, asynchronous data management and querying.

Why does NavigationStack replace NavigationView in modern SwiftUI apps?

NavigationStack replaces NavigationView in modern SwiftUI apps to provide a standardized, stack-based navigation system. It offers better support for programmatic navigation and complex view hierarchies.