Skip to content

Commit 4302c3f

Browse files
authored
Disable accessibility for introspection views (#261)
1 parent 82be8c3 commit 4302c3f

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,20 +106,19 @@ jobs:
106106
with:
107107
xcode-version: ${{ matrix.xcode || '14.3' }}
108108

109+
- name: Install tea
110+
uses: teaxyz/setup@v0
111+
109112
- name: Install xcbeautify
110113
run: brew install xcbeautify
111114

112-
- if: ${{ matrix.install }}
113-
name: Install xcodes
114-
run: brew install xcodesorg/made/xcodes
115-
116115
- if: ${{ matrix.install }}
117116
name: Install Required Runtime (${{ matrix.runtime }})
118117
uses: nick-fields/retry@v2
119118
with:
120119
timeout_minutes: 15
121120
max_attempts: 3
122-
command: sudo xcodes runtimes install '${{ matrix.runtime }}'
121+
command: sudo tea xcodes runtimes install '${{ matrix.runtime }}'
123122

124123
- name: List Available Runtimes and Simulators
125124
run: xcrun simctl list

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ Changelog
33

44
## master
55

6+
### SwiftUIIntrospect
7+
8+
- Changed: disabled accessibility for introspection views (#261)
9+
- Infrastructure: use [`xcodes`](https://github.com/XcodesOrg/xcodes) via [`tea`](https://github.com/teaxyz/cli) on CI (#261)
10+
611
## [0.6.2]
712

813
### SwiftUIIntrospect

Sources/Introspect.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@ struct IntrospectModifier<SwiftUIViewType: IntrospectableViewType, PlatformSpeci
4949
.background(
5050
IntrospectionAnchorView(id: id)
5151
.frame(width: 0, height: 0)
52+
.accessibility(hidden: true)
5253
)
5354
.overlay(
5455
IntrospectionView(id: id, selector: { selector($0, scope) }, customize: customize)
5556
.frame(width: 0, height: 0)
57+
.accessibility(hidden: true)
5658
)
5759
} else {
5860
content

0 commit comments

Comments
 (0)