Fix message composer textfield accessibility label (#688)

This commit is contained in:
sem pruijs
2023-03-09 11:25:02 +01:00
committed by GitHub
parent 50bf9e3fcc
commit d001b3dd32
2 changed files with 3 additions and 0 deletions
@@ -41,6 +41,7 @@ struct MessageComposerTextField: View {
isMultiline: $isMultiline, isMultiline: $isMultiline,
maxHeight: maxHeight, maxHeight: maxHeight,
onEnterKeyHandler: onEnterKeyHandler) onEnterKeyHandler: onEnterKeyHandler)
.accessibilityLabel(placeholder)
.background(placeholderView, alignment: .topLeading) .background(placeholderView, alignment: .topLeading)
} }
@@ -49,6 +50,7 @@ struct MessageComposerTextField: View {
if showingPlaceholder { if showingPlaceholder {
Text(placeholder) Text(placeholder)
.foregroundColor(placeholderColor) .foregroundColor(placeholderColor)
.accessibilityHidden(true)
} }
} }
} }
+1
View File
@@ -0,0 +1 @@
Hide the message composer textfield placeholder for VoiceOver users by Sem Pruijs