audit-modernization
Scan for legacy iOS patterns that have modern replacements, with migration guidance for each.
What This Command Does
Launches the modernization-helper agent to identify code still using older patterns and suggest the iOS 17/18+ replacement, including code samples for the migration.
What It Checks
- ObservableObject → @Observable — classes using the older protocol that should adopt the macro
- @StateObject → @State —
@StateObjectdeclarations on@Observabletypes (which require@State) - Deprecated APIs — calls to deprecated SwiftUI/UIKit APIs flagged with the corresponding
@availablereplacement - Combine → AsyncSequence —
Publisherchains that translate cleanly tofor await - Async legacy bridges —
withCheckedContinuationcalls where a modern async API now exists
Related Agent
- modernization-helper — The agent that powers this command