mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 19:34:25 +02:00
VoiceOver: Make ScrollToBottomButton speakable
This commit is contained in:
@@ -250,6 +250,7 @@
|
||||
|
||||
// Chat
|
||||
"room_jump_to_first_unread" = "Jump to first unread message";
|
||||
"room_accessiblity_scroll_to_bottom" = "Scroll to bottom";
|
||||
"room_new_message_notification" = "%d new message";
|
||||
"room_new_messages_notification" = "%d new messages";
|
||||
"room_one_user_is_typing" = "%@ is typing…";
|
||||
|
||||
@@ -1506,6 +1506,10 @@ internal enum VectorL10n {
|
||||
internal static var roomAccessibilityUpload: String {
|
||||
return VectorL10n.tr("Vector", "room_accessibility_upload")
|
||||
}
|
||||
/// Scroll to bottom
|
||||
internal static var roomAccessiblityScrollToBottom: String {
|
||||
return VectorL10n.tr("Vector", "room_accessiblity_scroll_to_bottom")
|
||||
}
|
||||
/// Take photo or video
|
||||
internal static var roomActionCamera: String {
|
||||
return VectorL10n.tr("Vector", "room_action_camera")
|
||||
|
||||
@@ -307,6 +307,11 @@
|
||||
self.iconImageView.image = [UIImage imageNamed:@"scrolldown"];
|
||||
}
|
||||
self.iconImageView.hidden = NO;
|
||||
|
||||
// Make VoiceOver consider it as a button
|
||||
self.iconImageView.accessibilityLabel = NSLocalizedStringFromTable(@"room_accessiblity_scroll_to_bottom", @"Vector", nil);
|
||||
self.iconImageView.isAccessibilityElement = YES;
|
||||
self.iconImageView.accessibilityTraits = UIAccessibilityTraitButton;
|
||||
|
||||
if (onIconTapGesture)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user