Automates the migration of legacy UserDefaults storage to modern SwiftData entities and PreferencesStore architectures.
The UserDefaults Migrator is a specialized tool designed to streamline the transition from legacy key-value storage to modern data persistence frameworks in Swift applications. It scans codebases for standard UserDefaults usage, intelligently categorizes items to determine if they should be migrated or retained, and automates the creation of SwiftData entities and migration logic. This skill is essential for iOS developers modernizing their app's architecture, ensuring a single source of truth for user settings and persistent data while cleaning up technical debt.
主要功能
01Safe archival workflows for deprecated storage keys
02Recursive codebase scanning for legacy UserDefaults.standard patterns
037 GitHub stars
04Automated SwiftData entity generation for migrated properties
05Intelligent categorization of settings vs. ephemeral debug flags
06Refactoring support for centralized PreferencesStore implementation
使用场景
01Auditing and cleaning up technical debt associated with undocumented UserDefaults keys
02Modernizing legacy iOS app storage from plist-based storage to SwiftData
03Refactoring scattered settings management into a centralized PreferencesStore