Skip to content

Commit 520aef6

Browse files
authored
Merge pull request #10 from browserstack/DEVA11Y-261-uikit-spm-plugin-support
adding xib/storyboard files as defaults along with .swift and updated…
2 parents c06de03 + 322f5f3 commit 520aef6

7 files changed

Lines changed: 15 additions & 14 deletions

File tree

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# 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.
33

44
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.
55

66
---
77
## 🚀 Key Capabilities
8-
* 🔍 **Automatic static accessibility linting** for SwiftUI
8+
* 🔍 **Automatic static accessibility linting** for SwiftUI and UIKit
99
* 🛠 **10+ WCAG-aligned rules** from the Spectra rule engine
1010
* 🛠 **Inline errors inside Xcode** with remediation guidance
1111
***Runs during build** using the SPM command plugin
12+
* 📂 **Broad File Support**: Analyzes .swift, .xib, and .storyboard files
1213

1314
---
1415
## Supported projects types
@@ -80,17 +81,17 @@ Repeat these steps for each target in your project
8081

8182
Zsh
8283
```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"
8485
```
8586

8687
Bash
8788
```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"
8990
```
9091

9192
Fish
9293
```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"
9495
```
9596

9697
Xcode will now automatically run the accessibility scan during builds.
@@ -163,17 +164,17 @@ Repeat these steps for each target in your project
163164

164165
Zsh
165166
```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"
167168
```
168169

169170
Bash
170171
```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"
172173
```
173174

174175
Fish
175176
```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"
177178
```
178179

179180
Xcode will now automatically run the accessibility scan during builds.

scripts/bash/cli.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ EOF
6868

6969
a11y_scan() {
7070
if [[ -z "$EXTRA_ARGS" ]]; then
71-
EXTRA_ARGS="--include **/*.swift"
71+
EXTRA_ARGS="--include **/*.swift --include **/*.xib --include **/*.storyboard"
7272
fi
7373
env -i HOME="$HOME" \
7474
XCODE_VERSION_ACTUAL="$XCODE_VERSION_ACTUAL"\

scripts/bash/spm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ EOF
6969

7070
setup
7171
if [[ -z "$EXTRA_ARGS" ]]; then
72-
EXTRA_ARGS="--include **/*.swift"
72+
EXTRA_ARGS="--include **/*.swift --include **/*.xib --include **/*.storyboard"
7373
fi
7474
env -i HOME="$HOME" \
7575
XCODE_VERSION_ACTUAL="$XCODE_VERSION_ACTUAL"\

scripts/fish/cli.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ EOF
8080

8181
a11y_scan() {
8282
if [[ -z "$EXTRA_ARGS" ]]; then
83-
EXTRA_ARGS="--include **/*.swift"
83+
EXTRA_ARGS="--include **/*.swift --include **/*.xib --include **/*.storyboard"
8484
fi
8585
env -i HOME="$HOME" \
8686
XCODE_VERSION_ACTUAL="$XCODE_VERSION_ACTUAL"\

scripts/fish/spm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ EOF
8282

8383
setup
8484
if [[ -z "$EXTRA_ARGS" ]]; then
85-
EXTRA_ARGS="--include **/*.swift"
85+
EXTRA_ARGS="--include **/*.swift --include **/*.xib --include **/*.storyboard"
8686
fi
8787
env -i HOME="$HOME" \
8888
XCODE_VERSION_ACTUAL="$XCODE_VERSION_ACTUAL"\

scripts/zsh/cli.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ EOF
7979

8080
a11y_scan() {
8181
if [[ -z "$EXTRA_ARGS" ]]; then
82-
EXTRA_ARGS="--include **/*.swift"
82+
EXTRA_ARGS="--include **/*.swift --include **/*.xib --include **/*.storyboard"
8383
fi
8484
env -i HOME="$HOME" \
8585
XCODE_VERSION_ACTUAL="$XCODE_VERSION_ACTUAL"\

scripts/zsh/spm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ EOF
8181

8282
setup
8383
if [[ -z "$EXTRA_ARGS" ]]; then
84-
EXTRA_ARGS="--include **/*.swift"
84+
EXTRA_ARGS="--include **/*.swift --include **/*.xib --include **/*.storyboard"
8585
fi
8686
env -i HOME="$HOME" \
8787
XCODE_VERSION_ACTUAL="$XCODE_VERSION_ACTUAL"\

0 commit comments

Comments
 (0)