Accessibility: VoiceOver: Add accessibility label and hint to the Record Voice Message button. (#6323)

* Add accessibility label and hint to the Record Voice Message button.

* Add release note.

* Remove unnecessary import for SwiftUI.

* Update Riot/Modules/Room/VoiceMessages/VoiceMessageToolbarView.swift

Use VectorL10n instead of calling NSLocalizedString directly.

* Add German translation for the newly added a11y strings.

* Revert "Add German translation for the newly added a11y strings."

This reverts commit 003cfd9c3ecc149b9aff7833c8d6614bbb37f72c.

* Update Riot/Assets/en.lproj/Vector.strings
This commit is contained in:
Robin Kipp
2022-06-22 11:07:13 +02:00
committed by GitHub
parent 30283509f7
commit ee6bc4c69f
4 changed files with 13 additions and 0 deletions
@@ -130,6 +130,8 @@ class VoiceMessageToolbarView: PassthroughView, NibLoadable, Themable, UIGesture
playbackView.waveformView.addGestureRecognizer(tapGesture)
tapGesture.delegate = self
self.tapGesture = tapGesture
primaryRecordButton.accessibilityLabel = VectorL10n.roomAccessibilityRecordVoiceMessage
primaryRecordButton.accessibilityHint = VectorL10n.roomAccessibilityRecordVoiceMessageHint
updateUIWithDetails(VoiceMessageToolbarViewDetails(), animated: false)
}