Procházet zdrojové kódy

add voice over hint if send button is not enabled

cyberta před 3 roky
rodič
revize
d1dcafd3db
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -1188,6 +1188,7 @@ class ChatViewController: UITableViewController {
 
     private func evaluateInputBar(draft: DraftModel) {
         messageInputBar.sendButton.isEnabled = draft.canSend()
+        messageInputBar.sendButton.accessibilityTraits = draft.canSend() ? .button : .notEnabled
     }
 
     private func configureInputBarItems() {