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 6a790befb7
commit 349f58d6c4
2 changed files with 3 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ struct MessageComposerTextField: View {
isMultiline: $isMultiline,
maxHeight: maxHeight,
onEnterKeyHandler: onEnterKeyHandler)
.accessibilityLabel(placeholder)
.background(placeholderView, alignment: .topLeading)
}
@@ -49,6 +50,7 @@ struct MessageComposerTextField: View {
if showingPlaceholder {
Text(placeholder)
.foregroundColor(placeholderColor)
.accessibilityHidden(true)
}
}
}

View File

@@ -0,0 +1 @@
Hide the message composer textfield placeholder for VoiceOver users by Sem Pruijs