ios-accessibility-validator

ios-accessibility-validator is a cursor rule for Cursor from gygantskiyMatilyock/ios-developer-agents. It costs 0 tokens per session (443 once invoked), scanned A, original, MIT.

Rules for checking iOS interface code against Apple’s accessibility guidance and WCAG 2.2, standards for making software usable by people with disabilities.

In plain words
What is it for?
Use them when reviewing accessibility labels and traits, scalable text, layout behavior, color contrast, touch targets, keyboard access, and gesture alternatives.
Why use it?
They help prevent UI code from excluding people who rely on screen readers, larger text, sufficient color contrast, alternative controls, or reduced motion.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use them when reviewing accessibility labels and traits, scalable text, layout behavior…

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/gygantskiymatilyock/ios-developer-agents/ios-accessibility-validator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/gygantskiyMatilyock/ios-developer-agents

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ios-accessibility-validator

README.md
[![agentmods](https://agentmods.dev/badge/rules/gygantskiymatilyock/ios-developer-agents/ios-accessibility-validator.svg)](https://agentmods.dev/rules/gygantskiymatilyock/ios-developer-agents/ios-accessibility-validator)
Your own site
<a href="https://agentmods.dev/rules/gygantskiymatilyock/ios-developer-agents/ios-accessibility-validator"><img src="https://agentmods.dev/badge/rules/gygantskiymatilyock/ios-developer-agents/ios-accessibility-validator.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 443 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00443
Opus 5 $0.00000 $0.00221
Sonnet 5 $0.00000 $0.00089
Haiku 4.5 $0.00000 $0.00044

Measured 7d ago against content hash a30ae8965c32, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ios-accessibility-validator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/ios-accessibility-validator.mdc · 63 lines

What it actually says

iOS Accessibility Validator

When working with iOS UI code, check for accessibility compliance with Apple HIG and WCAG 2.2.

VoiceOver Compatibility

Check accessibility labels:

  • All interactive elements have meaningful accessibilityLabel
  • Labels are concise and descriptive (not "Button" or "Image")
  • Labels don't include element type (VoiceOver announces automatically)
  • Images have accessibilityLabel or marked as decorative (.accessibilityHidden(true))
  • Icon-only buttons have descriptive labels
  • Labels update when state changes ("Play" -> "Pause")

Check traits:

  • .button for tappable non-Button elements
  • .header for section headers
  • .link for navigation links
  • .adjustable for sliders, steppers, pickers
  • .selected for current selection

Dynamic Type

Check text scaling:

  • Text uses UIFont.preferredFont(forTextStyle:) or SwiftUI .font(.body/.title/etc.)
  • Custom fonts use UIFontMetrics for scaling
  • No hardcoded font sizes that won't scale
  • Layouts don't clip at large accessibility sizes
  • @ScaledMetric for custom spacing in SwiftUI

Color Accessibility

Check contrast and color usage:

  • Text meets 4.5:1 contrast (normal) or 3:1 (large text 18pt+)
  • Information not conveyed by color alone
  • Error states have icons/text, not just red color
  • Uses semantic colors (UIColor.label, .systemBackground)
  • Supports both light and dark mode

Touch Targets

Check target sizes:

  • All interactive elements are minimum 44x44 points
  • Adequate spacing between targets
  • contentEdgeInsets extends small visuals

Motion

Check animation handling:

  • Respects UIAccessibility.isReduceMotionEnabled
  • Provides reduced-motion alternatives

Output

Flag issues as:

  • CRITICAL: Blocks users (cite WCAG criterion)
  • HIGH/MEDIUM/LOW: With code fix examples
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 63 lines · 0 tokens per session scan A a30ae8965c32

Subscribe to this mod's changes

ios-accessibility-validator is a cursor rule published in the GitHub repository gygantskiyMatilyock/ios-developer-agents (30 stars, last pushed 8mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 443 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.