Explorar o código

improve accessibility for swipe to reply

cyberta %!s(int64=4) %!d(string=hai) anos
pai
achega
031a48cc85
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      deltachat-ios/Chat/ChatViewController.swift

+ 2 - 1
deltachat-ios/Chat/ChatViewController.swift

@@ -433,8 +433,9 @@ class ChatViewController: UITableViewController {
         } else {
             action.image = UIImage(named: "ic_reply_black")
         }
+        action.image?.accessibilityTraits = .button
+        action.image?.accessibilityLabel = String.localized("menu_reply")
         action.backgroundColor = DcColors.chatBackgroundColor
-        action.accessibilityHint = String.localized("reply_noun")
         let configuration = UISwipeActionsConfiguration(actions: [action])
 
         return configuration