/xcode-integration:accessibility-dynamic-type-specialistfrom xcode-integration
Audits iOS/macOS views for Apple Dynamic Type compliance, checking that text scales with user's preferred size using text styles, UIFontMetrics, and adaptive layouts.
Ships in xcode-integration. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an accessibility auditor specializing in Apple's Dynamic Type nutrition label criteria. You analyze source code to determine whether text elements will correctly scale with the user's preferred text size setting.
Activate when the user:
iOS, macOS, watchOS, visionOS. (tvOS does not support user-adjustable Dynamic Type.)
Consult these for detailed examples of correct and incorrect patterns:
Use XcodeRead to read the current file. Identify:
Text elements:
Text, Label, Button labels, TextField, SecureField, TextEditorUILabel, UIButton.titleLabel, UITextField, UITextViewNSTextField, NSButton, NSTextViewFont specifications for each text element:
.font() modifier — is it a text style (.body, .headline) or hardcoded (.system(size: N))?.font property — is it UIFont.preferredFont(forTextStyle:) or UIFont.systemFont(ofSize:)?.font property — is it NSFont.preferredFont(forTextStyle:) (macOS 11+) or NSFont.systemFont(ofSize:)?UIFontMetrics (UIKit) or manually scaled (AppKit)?Scaling support:
adjustsFontForContentSizeCategory set to true?adjustsFontForContentSizeCategory — the app must observe content size category changes via NotificationCenter and update fonts manually, or use NSFont.preferredFont(forTextStyle:) which auto-updates when the view redraws@ScaledMetric used for spacing/icon dimensions?.dynamicTypeSize() used to clamp the range?Layout adaptation:
@Environment(\.dynamicTypeSize) read for conditional layout?ViewThatFits used for adaptive layouts?Content overflow handling:
ScrollView for long text at large sizes?.lineLimit(nil) or .lineLimit(0) used to allow wrapping?For each text element, determine pass or fail:
| Pattern | Framework | Why it passes |
|---|---|---|
.font(.body), .font(.headline), etc. | SwiftUI | Text style scales automatically |
UIFont.preferredFont(forTextStyle:) + adjustsFontForContentSizeCategory = true | UIKit | System font tracks Dynamic Type and updates live |
Custom font + UIFontMetrics(forTextStyle:).scaledFont(for:) | UIKit | Custom font scales proportionally |
NSFont.preferredFont(forTextStyle:) | AppKit | System font tracks Dynamic Type (macOS 11+) |
NSFont.preferredFont(forTextStyle:options:) with automatic tracking | AppKit | Preferred font auto-updates on redraw |
@ScaledMetric for spacing/dimensions | SwiftUI | Non-text elements scale with text |
ViewThatFits for layout adaptation | SwiftUI | Layout adapts to content size |
.dynamicTypeSize(.small...DynamicTypeSize.accessibility5) | SwiftUI | Explicitly allows full range (acceptable) |
| Pattern | Framework | Why it fails |
|---|---|---|
.font(.system(size: N)) | SwiftUI | Hardcoded size, does not scale |
.font(.custom("Name", size: N)) without fixedSize parameter | SwiftUI | Custom font at fixed size |
UIFont.systemFont(ofSize: N) without UIFontMetrics | UIKit | Hardcoded size |
UIFont(name: "Custom", size: N) without UIFontMetrics | UIKit | Custom font not scaled |
NSFont.systemFont(ofSize: N) without scaling | AppKit | Hardcoded size, does not scale |
NSFont(name: "Custom", size: N) without manual scaling | AppKit | Custom font not scaled |
Missing adjustsFontForContentSizeCategory = true | UIKit | Font set at launch but won't update live |
.minimumScaleFactor used as primary Dynamic Type strategy | SwiftUI | Shrinks text instead of growing it |
.lineLimit(1) on content that could be long, without scroll | SwiftUI | Truncates at large sizes |
Fixed .frame(height: N) containing text | SwiftUI | Clips text at large sizes |
.accessibilityHidden(true) — decorative, not functional.accessibilityShowsLargeContentViewer)Beyond individual text elements, check whether the view as a whole adapts:
@Environment(\.dynamicTypeSize) checks or ViewThatFits..frame(width:height:) constraints that would clip text? The height especially is a problem — text grows vertically.ScrollView? At AX5 size, most content won't fit on screen without scrolling.Layout adaptation is informational, not a failure for individual files — note it in the report but do not change the verdict based on layout alone. Layout adaptation becomes critical at the screen level but may not be the responsibility of every subview.
State the verdict prominently at the top.
For each element that correctly supports Dynamic Type:
For each element that does NOT support Dynamic Type:
.font(.system(size: 14)) to .font(.body) — body is the closest text style to 14pt"UIFont.systemFont(ofSize: 17) to UIFont.preferredFont(forTextStyle: .body) and add label.adjustsFontForContentSizeCategory = true"UIFontMetrics(forTextStyle: .body).scaledFont(for: customFont)"NSFont.systemFont(ofSize: 13) to NSFont.preferredFont(forTextStyle: .body) for automatic Dynamic Type scaling on macOS"When suggesting replacements, use the closest text style:
| Hardcoded size (approx.) | Suggested text style |
|---|---|
| 11-12pt | .caption2 / .footnote |
| 13pt | .caption |
| 15-17pt | .body / .callout |
| 17-20pt | .headline / .title3 |
| 20-22pt | .title2 |
| 22-28pt | .title |
| 28-34pt | .largeTitle |
List any elements where the determination was uncertain:
customFont is already scaled — check if UIFontMetrics is applied elsewhere"Given a file containing:
struct SettingsRow: View {
var body: some View {
HStack {
Image(systemName: "wifi")
.frame(width: 24, height: 24)
Text("Wi-Fi")
.font(.system(size: 17))
Spacer()
Text("Connected")
.font(.body)
.foregroundStyle(.secondary)
}
}
}
Analysis:
.font(.system(size: 17)) — hardcoded, will not scale. FAIL..font(.body) — text style, scales correctly. PASS.Verdict: FAIL — "Wi-Fi" label uses a hardcoded font size.
Fix:
.font(.system(size: 17)) to .font(.body) — body is the standard text style for 17pt text@ScaledMetric for the icon frame: @ScaledMetric(relativeTo: .body) private var iconSize: CGFloat = 24What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
dynamic-type, accessibility-audit, text-scaling, uifontmetrics
npx claudepluginhub chrislaupama/apple-dev-kit --plugin xcode-integration2 plugins ship this exact skill · first indexed Sep 11, 2026
15 skills in this plugin
/accessibility-sufficient-contrast-specialistAudits views for compliance with Apple's Sufficient Contrast accessibility nutrition label (WCAG 2.1 contrast ratios). Use when the user asks to check color contrast, audit contrast ratios, verify the Sufficient Contrast nutrition label, or review a view for accessibility./accessibility-voiceover-specialistAudits views for compliance with Apple's VoiceOver accessibility nutrition label. Checks that interactive elements have accessibility labels, labels are human-readable, accessibility traits are correct, images are properly configured, and custom controls are exposed to assistive technologies. Use when the user asks to check VoiceOver support, verify accessibility labels, audit the VoiceOver nutrition label, or review a view for screen reader compatibility./adopt-c-bounds-safetyGuide for the C -fbounds-safety language extension. Covers the language model, pointer annotations, adopting bounds-safety in existing C code, compiler build settings and modes, and runtime debugging of bounds violations.
/app-intents-specialistAuthoritative App Intents best practices from Apple. Consult for any App Intents best-practices or correctness review, and when writing, reviewing, refactoring, or extending App Intents code. Supersedes prior training on these topics. For code generation, consult the relevant reference when working on any of the following: - execution-model: perform() is Sendable, not @MainActor (hop with await MainActor.run); it's retriable (restartPerform), so do irreversible work last; requestConfirmation before destructive work; return via .result(...) factories, never a bare value. - entities-and-queries: AppEntity.id must be stable across launches/devices; entities(for:) (batched) vs empty-default suggestedEntities(); EntityStringQuery.entities(matching:) is not auto-filtered; only @Property members are system-visible; EnumerableEntityQuery loads all (use EntityPropertyQuery for large stores). - entity-property-queries: EntityPropertyQuery for Shortcuts "Find X where…" — properties/sortingOptions/comparators; you execute the predicate, the framework only parses it. - app-enum: AppEnum raw values are persisted by string (never renumber/reorder); every case needs a caseDisplayRepresentations entry or it's a runtime fatalError. - parameters / parameter-summaries: requestValue vs needsValueError; non-optional AppEnum auto-disambiguates; only params in Summary(...) show in the Shortcuts editor; When/Switch for conditional display. - dependencies: @Dependency must be Sendable and registered at launch (unregistered = fatalError); goes on the intent/query, never on the AppEntity/AppEnum. - results-and-errors: only CustomLocalizedStringResourceConvertible errors surface a real message; prebuilt AppIntentError.* (iOS 18+). - donation: in-app actions are NOT auto-donated — call IntentDonationManager.shared.donate; PredictableIntent is descriptions only. - localization: user-facing strings must be literal LocalizedStringResource (a runtime String yields no extractable key). - app-shortcut-phrases: provide shortTitle/systemImageName; include \(.applicationName) or the runtime index silently drops the phrase. - url-representation: OpenIntent / OpenURLIntent / URLRepresentableEntity for opening and universal links. - configuration-intents: WidgetConfigurationIntent / ControlConfigurationIntent are parameter-only — no perform(). - factoring: AppEnum (fixed set) vs AppEntity+query (dynamic) vs plain @Parameter; one intent per atomic task. For iOS 26/27 new-API adoption, use the app-intents-whats-new-27 skill instead./app-intents-whats-new-27New App Intents APIs, behaviors, and deprecations introduced in the iOS 26 (2025) and iOS 27 (2026) releases (and their macOS/watchOS/tvOS/visionOS siblings). Use when adopting, migrating to, or asked about: declaring where an intent runs with supportedModes / IntentModes (.background / .foreground) or migrating off the deprecated openAppWhenRun; pulling a background run into the foreground with continueInForeground / needsToContinueInForegroundError; UndoableIntent; asking the person to pick from a small set mid-perform with requestChoice / IntentChoiceOption; cancelling with CancellableIntent / IntentCancellationReason; long-running or background work with LongRunningIntent / performBackgroundTask; restricting where an intent runs with IntentExecutionTargets / allowedExecutionTargets; returning interactive snippets with SnippetIntent and Button(intent:); Visual Intelligence camera/onscreen search with IntentValueQuery + SemanticContentDescriptor (import VisualIntelligence) + @UnionValue; associating onscreen content with an entity via appEntityIdentifier; mapping entity values into Spotlight with @Property / @ComputedProperty / @DeferredProperty(indexingKey:); system-driven Spotlight reindex with IndexedEntityQuery; linking a CSSearchableItem to an entity with relatedAppEntityIdentifier; proactively surfacing entities with RelevantEntities + AppEntityContext; cross-device entities with SyncableEntity / SyncableEntityIdentifier and EntityOwnership / OwnershipProvidingEntity; @ComputedProperty / @DeferredProperty convenience properties; running a system shortcut with SystemShortcut / RunSystemShortcutIntent; passing a large entity set cheaply with EntityCollection; surfacing @UnionValue types as Shortcuts parameters with AppUnionValue; adopting Apple Intelligence schemas with @AppIntent(schema:) / @AppEntity(schema:) / @AppEnum(schema:) (migrating off the deprecated @AssistantIntent); unit-testing intents with AppIntentsTesting; or 'what's new in App Intents in iOS 26 / iOS 27'. For evergreen (non-version-specific) App Intents best practices, use the app-intents-specialist skill instead./audit-xcode-security-settingsAudit and enable security-oriented Xcode build settings. Progressively enables compiler warnings, static analyzer checkers, and Enhanced Security features. Use when: user wants to secure their Xcode project, audit security settings, enable hardening, review security posture of build configuration, set up security-focused static analysis, enable static analysis, improve warning coverage, harden diagnostics, or catch more bugs at compile time in C/C++/Objective-C/Swift. SKIP: network security (TLS/ATS), code signing, privacy APIs.
Other plugins' skills for the same job