Browse Source

add only send and attachment accessibility labels for now

cyberta 5 years ago
parent
commit
ea93f6f6ff
1 changed files with 4 additions and 0 deletions
  1. 4 0
      deltachat-ios/Controller/ChatViewController.swift

+ 4 - 0
deltachat-ios/Controller/ChatViewController.swift

@@ -428,6 +428,8 @@ class ChatViewController: MessagesViewController {
 
         let sendButtonImage = UIImage(named: "paper_plane")?.withRenderingMode(.alwaysTemplate)
         messageInputBar.sendButton.image = sendButtonImage
+        messageInputBar.sendButton.accessibilityLabel = String.localized("menu_send")
+        messageInputBar.sendButton.accessibilityTraits = .button
         messageInputBar.sendButton.title = nil
         messageInputBar.sendButton.tintColor = UIColor(white: 1, alpha: 1)
         messageInputBar.sendButton.layer.cornerRadius = 20
@@ -445,6 +447,8 @@ class ChatViewController: MessagesViewController {
                     $0.image = clipperIcon
                     $0.tintColor = UIColor.themeColor(light: .darkGray, dark: .lightGray)
                     $0.setSize(CGSize(width: 40, height: 40), animated: false)
+                    $0.accessibilityLabel = String.localized("menu_add_attachment")
+                    $0.accessibilityTraits = .button
                 }.onSelected {
                     $0.tintColor = DcColors.primary
                 }.onDeselected {