|
1 | 1 | # AccessibilityDevTools |
2 | | -A Swift Package Manager (SPM) command plugin and CLI tool that scans your iOS Swift codebase for accessibility issues using BrowserStack’s Accessibility DevTools rule engine. |
| 2 | +A Swift Package Manager (SPM) command plugin and CLI tool that scans your iOS codebase for accessibility issues using BrowserStack’s Accessibility DevTools rule engine. |
3 | 3 |
|
4 | 4 | AccessibilityDevTools enables static accessibility linting directly inside Xcode, via SwiftPM, or using the standalone BrowserStack CLI, helping teams catch WCAG violations early—before UI tests, QA, or production. |
5 | 5 |
|
6 | 6 | --- |
7 | 7 | ## 🚀 Key Capabilities |
8 | | -* 🔍 **Automatic static accessibility linting** for SwiftUI |
| 8 | +* 🔍 **Automatic static accessibility linting** for SwiftUI and UIKit |
9 | 9 | * 🛠 **10+ WCAG-aligned rules** from the Spectra rule engine |
10 | 10 | * 🛠 **Inline errors inside Xcode** with remediation guidance |
11 | 11 | * ⚡ **Runs during build** using the SPM command plugin |
| 12 | +* 📂 **Broad File Support**: Analyzes .swift, .xib, and .storyboard files |
12 | 13 |
|
13 | 14 | --- |
14 | 15 | ## Supported projects types |
@@ -80,17 +81,17 @@ Repeat these steps for each target in your project |
80 | 81 |
|
81 | 82 | Zsh |
82 | 83 | ```zsh |
83 | | -./browserstack-a11y-scan-spm-zsh.sh --include **/*.swift --non-strict |
| 84 | +./browserstack-a11y-scan-spm-zsh.sh --include "**/*.swift" --include "**/*.xib" --include "**/*.storyboard" |
84 | 85 | ``` |
85 | 86 |
|
86 | 87 | Bash |
87 | 88 | ```bash |
88 | | -./browserstack-a11y-scan-spm-bash.sh --include **/*.swift --non-strict |
| 89 | +./browserstack-a11y-scan-spm-bash.sh --include "**/*.swift" --include "**/*.xib" --include "**/*.storyboard" |
89 | 90 | ``` |
90 | 91 |
|
91 | 92 | Fish |
92 | 93 | ```bash |
93 | | -./browserstack-a11y-scan-spm-fish.sh --include **/*.swift --non-strict |
| 94 | +./browserstack-a11y-scan-spm-fish.sh --include "**/*.swift" --include "**/*.xib" --include "**/*.storyboard" |
94 | 95 | ``` |
95 | 96 |
|
96 | 97 | Xcode will now automatically run the accessibility scan during builds. |
@@ -163,17 +164,17 @@ Repeat these steps for each target in your project |
163 | 164 |
|
164 | 165 | Zsh |
165 | 166 | ```zsh |
166 | | -./browserstack-a11y-scan-spm-zsh.sh --include **/*.swift --non-strict |
| 167 | +./browserstack-a11y-scan-spm-zsh.sh --include "**/*.swift" --include "**/*.xib" --include "**/*.storyboard" |
167 | 168 | ``` |
168 | 169 |
|
169 | 170 | Bash |
170 | 171 | ```bash |
171 | | -./browserstack-a11y-scan-spm-bash.sh --include **/*.swift --non-strict |
| 172 | +./browserstack-a11y-scan-spm-bash.sh --include "**/*.swift" --include "**/*.xib" --include "**/*.storyboard" |
172 | 173 | ``` |
173 | 174 |
|
174 | 175 | Fish |
175 | 176 | ```bash |
176 | | -./browserstack-a11y-scan-spm-fish.sh --include **/*.swift --non-strict |
| 177 | +./browserstack-a11y-scan-spm-fish.sh --include "**/*.swift" --include "**/*.xib" --include "**/*.storyboard" |
177 | 178 | ``` |
178 | 179 |
|
179 | 180 | Xcode will now automatically run the accessibility scan during builds. |
|
0 commit comments