uikit-app-modernization
Modernizes UIKit apps for multi-window environments by replacing legacy shared-state APIs with context-appropriate modern alternatives. This includes references to mainScreen, interfaceOrientation, application and scene lifecycle, as well as safe area inset updates.
npx skills add superagents-lab/xcode27-skills --skill uikit-app-modernization --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# UIKit App Modernization Skill ## Purpose Modernize UIKit apps to behave correctly on modern iOS by: - Eliminating references to legacy shared-state APIs - Migrating from application lifecycle to scene lifecycle - Supporting dynamic scene sizing and multi-window environments ## Scope This skill performs **specific, targeted modernizations** in both **Swift and Objective-C** codebases: - Replace legacy shared-state APIs with context-appropriate modern APIs - Migrate to scene-based lifecycle - Update apps to support a resizable user interface by removing usage of: - main screen (`UIScreen.mainScreen`, `UIScreen.main`) - interface orientation (`interfaceOrientation`) - assumptions of symmetric safe areas (`safeAreaLayoutGuide`, `safeAreaInsets`) ## Core Principles 1. **Closest to consumer** — Prefer information nearest the point of use (e.g., view's trait collection over window's). 2. **Always apply a replacement when the target API is present.** A TODO alone is a failure. **An empty diff for a file containing the target API is also a failure.** If the file contains the target deprecated API and a concrete replacement is feasible under any pattern in the active task's reference file,
- Purpose
- Scope
- Core Principles
- Workflow
- Phase 0: Fast Path for Simple Cases
- Phase 1: Detection
- Phase 2: Analysis
- Phase 3: Decision & Validation
- Phase 3b: File Processing Completeness
- Phase 4: Implementation
- Phase 5: Final Verification
- Task Registry
What does the uikit-app-modernization skill do?
Modernizes UIKit apps for multi-window environments by replacing legacy shared-state APIs with context-appropriate modern alternatives. This includes references to mainScreen, interfaceOrientation, application and scene lifecycle, as well as safe area inset updates.
How do I install it?
Run `npx skills add superagents-lab/xcode27-skills --skill uikit-app-modernization --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From superagents-lab/xcode27-skills, a repository with 261 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
