swiftuimigrator-admob
SKILL.md
SwiftUI Migrator AdMob
Overview
Use this skill only after project setup, startup flow, and core screen migration are already stable.
Core principle: AdMob is a late-stage migration concern. Do not introduce ad complexity while the app shell or screen parity is still unstable.
When to Use
- Core setup and screen migration are already working
- The remaining migration work is specific to Google AdMob
- AdMob defaults, managers, or native ad views need SwiftUI equivalents
Preconditions
- The app already has a stable SwiftUI entry path
- Startup logic is already migrated or stable
- Core screen migration is working without ad-related blockers
Scope
- AdMob defaults and ad-unit setup
SwiftUIAdManager- App integration and lifecycle wiring
- Native ad migration
- Cleanup of legacy AdMob logic in
AppDelegate
Migration Tasks
1. Migrate AdMob configuration
- Ensure the required defaults keys exist.
- Migrate ad-unit naming and configuration into SwiftUI-compatible structures.
2. Add SwiftUI ad management
- Create or adapt
SwiftUIAdManager. - Move lifecycle-driven ad behavior out of legacy UIKit-only wiring.
3. Migrate screen-level ad UI
- Add native ad support where needed.
- Keep ad presentation logic explicit and testable.
4. Clean up legacy ad wiring
- Remove obsolete AdMob logic from
AppDelegateonly after the SwiftUI flow is verified.
Shared References
- AdMob guide:
../swiftuimigrator/guides/admob-migration.md - Verification:
../swiftuimigrator/guides/verification-checklists.md
Verification
- The app builds with AdMob integrated
- Ads only appear under the intended conditions
- Native ad views render correctly
- Legacy ad logic can be removed without regression
Exit Criteria
AdMob works in the SwiftUI app without depending on legacy UIKit-specific ad wiring.
Weekly Installs
1
Repository
2sem/swiftui-mi…or-skillFirst Seen
8 days ago
Security Audits
Installed on
amp1
cline1
opencode1
cursor1
kimi-cli1
codex1