What problem does it solve?
This Skill addresses the challenges of maintaining and scaling Swift and SwiftUI applications by providing a structured approach to refactoring towards a modern, modular architecture. It helps eliminate outdated patterns and enforces best practices for performance, testability, and maintainability.
Core Features & Use Cases
- Architecture Migration: Guides the transition from older SwiftUI patterns to the
@Observable macro, NavigationStack, and coordinator-based navigation.
- Modularization: Enforces clear boundaries between Domain, Data, and Feature modules using Swift Package Manager.
- Performance Optimization: Focuses on view diffing, state management, and list performance improvements.
- Use Case: Refactor a legacy SwiftUI app using
ObservableObject and NavigationView into a clean, modular MVVM-C architecture using @Observable and NavigationStack, ensuring better performance and easier maintenance.
Quick Start
Apply the swift-refactor skill to modernize your existing SwiftUI code to the clinic architecture.