{"enrichment":{"faq":[{"a":"swift-refactor guides you through replacing deprecated ObservableObject patterns with Swift's @Observable macro. This modernization reduces boilerplate, improves performance through automatic view diffing, and aligns with current SwiftUI best practices. The skill helps you migrate state management to cleaner, more efficient implementations that work seamlessly with Swift 6.2 and later.","q":"What modernization does swift-refactor apply to SwiftUI observable viewmodels?"},{"a":"swift-refactor helps you refactor existing SwiftUI code into modular MVVM-C patterns using SPM package boundaries. It establishes clean architecture layers\u2014Domain, Data, Feature, and App\u2014with protocol-driven design. This separation enables independent feature development, easier testing, and scalable codebase organization across multiple Swift Package Manager modules.","q":"How does swift-refactor structure code into modular MVVM-C architecture?"},{"a":"Yes. swift-refactor addresses the migration from deprecated NavigationView to modern NavigationStack. It shows how to implement coordinator-based navigation patterns and dependency injection alongside the new navigation APIs. This modernization improves navigation predictability and integrates cleanly with MVVM-C architectures.","q":"Can swift-refactor help migrate from NavigationView to NavigationStack?"},{"a":"swift-refactor improves SwiftUI performance through view diffing, composition extraction, and list optimization techniques. It teaches you to identify expensive view recomputations, break monolithic views into smaller components, and optimize collection rendering. These patterns reduce unnecessary updates and improve app responsiveness.","q":"What SwiftUI performance optimizations does swift-refactor cover?"},{"a":"swift-refactor demonstrates dependency injection container patterns and coordinator-based navigation that work with modern SwiftUI. It shows how to inject dependencies at the feature and app layers, enabling testable, loosely-coupled components. This approach pairs naturally with SPM boundaries and protocol-driven design for maximum flexibility.","q":"How does swift-refactor implement dependency injection in SwiftUI?"},{"a":"swift-refactor is released under the MIT license, allowing free use, modification, and distribution in both open-source and commercial projects with minimal restrictions.","q":"What license covers swift-refactor?"}],"shadow_tags":["architecture-migration","state-modernization","modular-design","protocol-driven","performance-tuning","dependency-wiring","layer-separation","navigation-patterns","async-patterns","code-organization"],"summary_rewrite":"swift-refactor helps developers modernize SwiftUI applications by transforming existing code into clean, modular MVVM-C patterns. It leverages Swift's @Observable macro and SPM package boundaries to create maintainable, scalable architectures that separate concerns and improve testability."},"files":[{"bytes":12787,"path":"skills/.experimental/swift-refactor/SKILL.md","sha256":"54076ad9eed903dc973b4aa1254547c8dc7e5534c34c3748c0c2ed1bb006c7a6","url":"https://skillfed.io/files/pproenca/dot-skills/swift-refactor/4abc27fc/SKILL.md"}],"id":"pproenca/dot-skills/swift-refactor","links":{"html":"https://skillfed.io/pproenca/dot-skills/swift-refactor","md":"https://skillfed.io/pproenca/dot-skills/swift-refactor.md","repo":"https://github.com/pproenca/dot-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":14,"language":"Shell","last_updated":"2026-07-24","license":"MIT","name":"swift-refactor","publisher":"pproenca","stars":182},"relations":{"similar":[{"id":"pproenca/dot-skills/swift-ui-architect"},{"id":"pproenca/dot-skills/ios-navigation"},{"id":"pproenca/dot-skills/swift-data"},{"id":"pproenca/dot-skills/swift-optimise"},{"id":"pproenca/dot-skills/ios-xcode"},{"id":"pproenca/dot-skills/ios-testing"},{"id":"pproenca/dot-skills/ios-design-system"},{"id":"pproenca/dot-skills/ios-hig"},{"id":"pproenca/dot-skills/ios-animations"},{"id":"pproenca/dot-skills/ios-design"}]},"slug":{"owner":"pproenca","repo":"dot-skills","skill":"swift-refactor"},"version":"4abc27fc"}
