The best way to control Claude Code, Codex and more from any computer or phone
fix(mobile): VoiceOver names the iOS message box (#34658)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
MarcoDotIO committed
Nov 14, 2026 at 15:08 UTC
2c607adf1fc46e74a035caf31e46edc47acc02c9
2 files changed
+8
apps/mobile/modules/t3-composer-editor/ios/T3ComposerEditorView.swift
+1
@@ -749,6 +749,7 @@ public final class T3ComposerEditorView: ExpoView, UITextViewDelegate, UITextDro
749
750
func setPlaceholder(_ placeholder: String) {
751
placeholderLabel.text = placeholder
752
+ textView.accessibilityLabel = placeholder
753
setNeedsLayout()
754
}
755
apps/mobile/modules/t3-composer-editor/tests/ios/main.swift
+7
@@ -139,6 +139,13 @@ do {
139
check(view.text.utf16.elementsEqual("@e\u{0301}".utf16), "A renormalized chip source kept the old text")
140
}
141
142
+// The placeholder label is hidden from VoiceOver, so the text view must carry it.
143
+do {
144
+ let view = makeEditor("")
145
+ view.setPlaceholder("Ask anything")
146
+ check(view.editor.accessibilityLabel == "Ask anything", "VoiceOver label: \(String(describing: view.editor.accessibilityLabel))")
147
+}
148
+
149
print("composer editor tests passed")
150
151
private let dropEditor = ComposerTextView()