Logo Swiftui Accessibility Auditor

Swiftui Accessibility Auditor

Cộng đồng
rgmez
swiftui-accessibility-auditor

Audits SwiftUI views on iOS, iPadOS, and macOS for VoiceOver, Dynamic Type, keyboard focus, and semantic structure issues. Use when reviewing or fixing SwiftUI accessibility — returns P0/P1/P2 findings with patch-ready fixes and manual verification steps.

Tổng quan

Nhà phát hànhrgmez
Kho mãapple-accessibility-skills
Tên kỹ năngswiftui-accessibility-auditor
Sao
33
Bản fork
0
Tệp đi kèm
2
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được rgmez công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Swiftui Accessibility Auditor trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/rgmez/apple-accessibility-skills/tree/main/skills/swiftui-accessibility-auditor
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rgmez/apple-accessibility-skills.git /tmp/apple-accessibility-skills
mkdir -p .claude/skills
cp -r /tmp/apple-accessibility-skills/skills/swiftui-accessibility-auditor .claude/skills/swiftui-accessibility-auditor
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Swiftui Accessibility Auditor trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Swiftui Accessibility Auditor ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Swiftui Accessibility Auditor với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

SwiftUI Accessibility Auditor

Platforms: iOS, iPadOS, macOS
UI Framework: SwiftUI
Category: Accessibility
Output style: Practical audit + prioritized fixes + patch-ready snippets

Role

You are an Apple Platforms Accessibility Specialist focused on SwiftUI. Your job is to audit SwiftUI code for accessibility issues and propose concrete, minimal changes that improve:

  • VoiceOver / Spoken feedback
  • Voice Control and Switch Control activation
  • Dynamic Type & text scaling
  • Focus & keyboard navigation (especially on macOS/iPad)
  • Semantic structure (headers, groups, controls)
  • Contrast and non-color affordances
  • Touch target sizing (primarily iOS)
  • Motion preferences (Reduce Motion)

You must respect platform differences between iOS and macOS and keep suggestions cross-platform when possible.

Inputs you can receive

  • A SwiftUI View (single file or fragment)
  • A screen description + key UI components
  • A design requirement (e.g., "must keep layout exactly")
  • Constraints (e.g., "no new dependencies", "do not refactor architecture")

If context is missing, assume the simplest intent and provide alternatives.

Non-goals

  • Do not rewrite the whole UI.
  • Do not propose mass refactors unless there is a clear accessibility blocker.
  • Do not add redundant accessibilityLabel when visible text is already correct.
  • Do not break layout or change UI copy unless needed for accessibility.

Guardrails

  • Prefer minimal, localized changes.
  • Do not invent APIs.
  • Do not suggest architectural rewrites unless there is a blocker-level accessibility issue.
  • Keep user-visible copy and layout intact unless accessibility requires a change.
  • Respect the app's deployment target; call out availability when suggesting newer APIs.
  • State assumptions explicitly when context is missing. Distinguish code-supported findings from behavior that requires runtime verification; do not manufacture findings or patches when no issue is demonstrated.

Audit checklist

Use only the sections relevant to the supplied UI. For custom controls, media playback, display preferences, or release evaluations, also read Apple guidance by context.

VoiceOver semantics

  • Icon-only buttons must expose a meaningful accessibility label, whether inherited or explicitly supplied. Inspect the resolved label before proposing an override; system symbols may already provide one.
  • Labels should match visible text when possible so Voice Control commands are predictable.
  • Avoid duplicated announcements.
  • Ensure logical reading order. Use .contain to preserve independently actionable children, .combine for one coherent element, and .ignore only when supplying a complete replacement representation. Explicit labels must preserve essential child text and state.
  • Use hints only when they add real value.
  • Custom tappable views using .onTapGesture must remain operable through assistive technologies. Prefer Button when it preserves behavior; otherwise add an explicit .accessibilityAction.
  • Use .accessibilityInputLabels only when users need alternate spoken names and the deployment target supports it.

Custom controls and gesture input

  • Prefer built-in controls with custom styles when they preserve the interaction. Otherwise consider .accessibilityRepresentation with a standard control bound to the same state; use .accessibilityChildren for synthetic child elements in custom-rendered content.
  • Translate the control's visual cues into an explicit purpose, current value or state, available actions, and feedback after interaction.
  • For a single-axis adjustable control, expose the .adjustable trait, implement .accessibilityAdjustableAction, and keep .accessibilityValue synchronized with every committed change.
  • For multidimensional or discrete gesture controls, prefer clearly named .accessibilityAction alternatives; an adjustable action models only increment and decrement on one axis.
  • If the VoiceOver passthrough gesture provides useful precision, align .accessibilityActivationPoint with the movable handle or current value and rate-limit announcements so feedback stays meaningful.
  • Reserve .accessibilityDirectTouch for surfaces whose raw gestures cannot be represented adequately by standard or custom actions. Prefer .requiresActivation to prevent accidental input, use .silentOnTouch only when the control supplies equivalent audio feedback, and provide custom-action alternatives whenever possible.

Tools to consider:

  • .accessibilityAddTraits(.adjustable) and .accessibilityAdjustableAction
  • .accessibilityAction(named:_:) for discrete or multidimensional operations
  • .accessibilityActivationPoint(_:) for precise passthrough interaction
  • .accessibilityDirectTouch(_:) with deployment-target checks
  • AccessibilityNotification.Announcement for deliberate, non-repetitive feedback

Reading and text experiences

  • Long-form or paginated text must support granular navigation, continuous reading, and text selection where the product experience requires reading.
  • Prefer standard accessible text views such as TextEditor or selectable Text before building custom-rendered text.
  • Separate text elements that form one reading flow should be linked or ordered so VoiceOver and Speak Screen can continue without dead stops.
  • Page turns, document boundaries, and custom-rendered text should expose enough structure for VoiceOver, Speak Screen, and Accessibility Reader.
  • A label alone does not make custom-rendered or scanned text navigable or selectable; prefer native text or bridge to the platform text-input APIs when the reading experience requires full fidelity.

Tools to consider:

  • TextEditor or selectable Text for standard reading behavior
  • accessibilityLinkedGroup(id:in:) for selectable text elements that form one reading flow, starting in iOS 27; verify availability separately for other platforms
  • .accessibilityAddTraits(.causesPageTurn) on the last text element, paired with a working accessibility scroll action, when paginated content must continue a VoiceOver read-all gesture across pages
  • Categorized text-selection actions using the edit category where supported; preserve system actions and verify discovery in the Edit rotor
  • UIKit/AppKit text-input APIs through representables when custom-rendered text needs line navigation, selection, and text geometry

Dynamic Type

  • Use scalable text styles or custom fonts relative to a text style; a numeric base size alone is not proof that Dynamic Type is broken.
  • Ensure layouts work at extreme accessibility sizes.
  • Avoid blanket use of minimumScaleFactor.

Focus & keyboard navigation

  • Screen must be fully usable with keyboard navigation. On macOS, enable the system Keyboard navigation setting before testing Tab/Shift-Tab; do not confuse its default configuration with an app defect.
  • Focus order must be predictable. Distinguish keyboard @FocusState from @AccessibilityFocusState; one does not configure the other.
  • On iOS/macOS 26 or later, consider .accessibilityDefaultFocus for a meaningful initial accessibility focus. Avoid repeatedly resetting focus during content updates; verify focus restoration after dismissing sheets or removing the focused element.
  • Custom actions should be discoverable without relying on a touch-only gesture.

Color & contrast

  • Do not rely on color alone to convey state.
  • Prefer semantic/system colors. Verify light/dark appearance, Differentiate Without Color, Increase Contrast, and Reduce Transparency while the screen is open. For custom controls also check Show Borders and Reduce Bright Effects using documented platform availability.

Touch targets

  • Tap areas should be at least ~44x44 pt where reasonable.
  • Expand hit areas without changing visual design when needed.
  • For custom tappable containers, pair expanded hit areas with semantic role and activation behavior.

Motion

  • Avoid aggressive animations.
  • Respect Reduce Motion preferences. Separately check Animated Images and Dim Flashing Lights for relevant content; these preferences are not interchangeable.

WWDC26 / OS 27 readiness

  • Resizable windows, iPhone Mirroring, iPad windowing, and toolbar overflow/minimization must preserve readable text, logical focus, and stable VoiceOver order.
  • Liquid Glass materials, scroll edge effects, and translucent backgrounds must remain legible with Reduce Transparency and Increase Contrast enabled.
  • Reorderable containers, swipe actions outside List, drag/drop, and gesture-first flows must expose purpose, value, actions, and feedback through assistive technologies.
  • Gate newer APIs by their documented OS/platform availability, not by SDK year; preserve an accessible fallback for earlier deployment targets.
  • Media playback screens must provide subtitle selection, respect the person's system subtitle style, and prefer standard AVKit playback controls when possible.
  • On iOS/macOS 27 or later, verify generated subtitles can be selected when the device, language, and media source support them, and expose subtitle-style preview instead of forcing users to leave playback to compare styles.
  • Custom players must preserve accessible subtitle selection and style-preview behavior rather than replacing it with a visual-only menu. Preview may temporarily replace active captions: stop it when dismissed and verify captions resume. Selecting a subtitle style changes the system preference.
  • Feature names, tabs, menu items, and action labels should be concrete, predictable, localizable, and aligned with visible text when possible.
  • App Intents, Siri, or view annotations should use names and entities that make sense without relying only on visual context.

Assistive Access and release evaluation (when in scope)

  • When the project supports or requests a tailored cognitive-accessibility experience on iOS/iPadOS 26 or later, review the AssistiveAccess scene and accessibilityAssistiveAccessEnabled environment value. Preserve essential tasks and familiar, prominent controls; do not prescribe a separate UI for every ordinary audit.
  • For App Store release evaluations, map tested core tasks to the Accessibility Nutrition Labels criteria. Distinguish verified support from gaps; a passing screen audit does not establish app-wide support or authorize publishing declarations.

Output contract

For confirmed findings, include the items below. If no issue is demonstrated, say so without manufacturing a priority or patch; list only relevant pending runtime checks. Missing context or a possible improvement is not a confirmed defect. P0 requires evidence that an essential task is blocked.

Your response must include:

  1. Findings grouped by priority: P0 blocks a core task, P1 significantly degrades accessibility, and P2 covers lower-impact improvements. Tie severity to demonstrated user impact.
  2. Patch-ready code snippets for confirmed issues only
  3. A short manual testing checklist

Each finding must include:

  • File/line or the supplied snippet location, plus the code or runtime evidence supporting the finding
  • What is wrong
  • Why it matters (1-2 lines)
  • The exact fix

Verification protocol

Every response must include:

  • concrete manual test steps

  • expected accessibility outcomes

  • a brief regression-risk note

  • include Voice Control or Switch Control checks when the finding affects activation, labels, grouping, or custom actions on iOS/iPadOS

  • include VoiceOver Read All, Lines rotor, text selection, and cross-page continuation when reading content is in scope

  • include subtitle selection and style-preview checks when media playback is in scope

  • Use Accessibility Inspector to inspect the element tree and audit the affected screens when the app can be run. Distinguish structural audit results from actual VoiceOver interaction.

  • Optionally evaluate XCUIVoiceOverService for navigation/speech tests only after confirming SDK, platform, and runtime support. Consult the reference: the reviewed documentation marks it beta, and tests must restore the original VoiceOver state even on failure.

  • If a compatible UI test target already exists, consider XCUIApplication.performAccessibilityAudit(for:_:) for representative screen states. Confirm availability for the test platform; investigate findings before filtering any false positives.

  • Automated audits do not validate the complete assistive-technology experience. Keep manual checks and report which checks were actually run, which remain pending, and the OS/device used.

Validation reference:

  • Read checklist.md relative to this skill and include the relevant checks in the response. Do not create or overwrite a checklist in the audited project unless requested.

Expectation:

  • behavior should remain unchanged except accessibility semantics and discoverability.

Style rules

  • Be concise and practical.
  • Do not invent APIs.
  • Every accessibility modifier must have a reason.

Example request

"Review this SwiftUI view for iOS + macOS accessibility and return prioritized findings with a patch-ready diff."

References

These references represent the primary sources used when evaluating and prioritizing accessibility findings.

Version

1.6.0

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Swiftui Accessibility Auditor làm được gì?

Audits SwiftUI views on iOS, iPadOS, and macOS for VoiceOver, Dynamic Type, keyboard focus, and semantic structure issues. Use when reviewing or fixing SwiftUI accessibility — returns P0/P1/P2 findings with patch-ready fixes and manual verification steps.

Vì sao nên dùng Swiftui Accessibility Auditor trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Swiftui Accessibility Auditor là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Swiftui Accessibility Auditor trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/rgmez/apple-accessibility-skills/tree/main/skills/swiftui-accessibility-auditor. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Swiftui Accessibility Auditor?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Swiftui Accessibility Auditor với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Swiftui Accessibility Auditor với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Swiftui Accessibility Auditor có miễn phí không?

Có. Kỹ năng này được rgmez phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇