SwiftUI iOS 17 modernisation
Scans your Swift code for old patterns and plans the move to iOS 17 APIs, so you migrate without breaking the app.
What we improved
Replaced the wrong iOS 16 fallback. The original suggested `#if os(iOS) && swift(>=5.9)` to choose between `@Observable` and `ObservableObject`, but that tests the compiler, not the deployment target, so it never selects the old branch and
Improved by YourAISkill from the original by CharlesWiltgen, under its MIT licence. The download includes the author's licence and a CHANGES.md listing every change. Both Claude reviews read the improved version.
Claude's review
8/10 Thorough iOS 17 modernization scan with grep patterns, deployment-target gating and expert traps (lazy and wrapped properties, @State init, GroupSession timing).
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Use when the user wants to modernize iOS code to iOS 17/18 patterns, migrate from ObservableObject to @Observable, update @StateObject to @State, or adopt modern SwiftUI APIs.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: axiom-modernize
description: "Scan an iOS or SwiftUI codebase for pre-iOS 17 patterns and produce a prioritized migration plan with file and line references and before and after code: ObservableObject to @Observable, @StateObject to @State, @ObservedObject to a plain property or @Bindable, @EnvironmentObject to @Environment, deprecated SwiftUI APIs, completion handlers to async/await. Reads the deployment target first, flags what the migration will break (Combine $ publishers, lazy and property-wrapper properties, missing environment objects) and what must not be migrated (GroupSession, framework types). Use when the user wants to modernize Swift or SwiftUI code for iOS 17 or 18, migrate to @Observable, or asks whether to keep @StateObject."
license: MIT
---
<!-- Modified by YourAISkill (youraiskill.com) on 2 December 2026 from the original by CharlesWiltgen. See CHANGES.md. -->
# Modernization Helper
Migrate iOS apps to iOS 17 and later patterns. Scan the codebase for legacy patterns and give a migration path for each:
- `ObservableObject` to `@Observable`
- `@StateObject` to `@State` with an Observable model
- `@ObservedObject` to a plain property or `@Bindable`
- `@EnvironmentObject` to `@Environment`
- Deprecated SwiftUI modifiers to their replacements
- Completion handlers to async/await
## Tool use is mandatory
Run every Glob, Grep and Read this skill lists. Do not reason from memory instead of scanning.
Run each Grep pattern as written (do not merge them into one regex) and read each match before reporting it: a grep hit is a candidate, not a finding.
## Files to scan
**Swift files**: `**/*.swift`
Skip for reporting: `*/Pods/*`, `*/Carthage/*`, `*/.build/*`, `*/DerivedData/*`, `*/SourcePackages/*` and other vendored code. Tests and previews are not findings in their own right, but check them when you plan a migration: tests that subscribe to `$property` publishers and previews that call `.environmentObject(...)` break or crash after the model changes.
## Step 0: Read the deployment target
Everything in this skill depends on it.
```
Grep: IPHONEOS_DEPLOYMENT_TARGET (in *.pbxproj and *.xcconfig)
Grep: \.iOS\(\.v (in Package.swift)
```
Also note macOS, watchOS, tvOS or visionOS targets if the code is shared. Report the lowest target. If it is below iOS 17, patterns 1 to 5 are blocked for that target (see "Supporting iOS 16 or earlier").
...From CharlesWiltgen's repository, MIT licence.
Related skills
-
Checked
iPhone interface guidelines
Applies Apple's iPhone design guidelines in SwiftUI and UIKit, so your app feels at home on iOS.
7/101 credit -
Checked
App Store rejection check
Reviews Apple app code against the App Store Review Guidelines to catch rejection risks before you submit.
7/101 credit -
Checked
Liquid Glass for iOS apps
Shows where Apple's Liquid Glass belongs in your iOS app and how to build it, so screens stay clear and readable.
8/101 credit -
Checked
Capacitor iOS hardening
Tightens Xcode security settings and native plugin code in a Capacitor iOS app, one safe step at a time.
7/101 credit -
Checked
CocoaPods to SwiftPM
Moves Kotlin Multiplatform projects from CocoaPods to Swift Package Manager and updates the Xcode project.
8/101 credit -
Checked
Interactive 3D viewers
Builds interactive 3D viewers, AR product configurators and WebXR scenes with three-live and xr-live.
7/101 credit