瀏覽代碼

add voice over hint if send button is not enabled

cyberta 3 年之前
父節點
當前提交
d1dcafd3db
共有 1 個文件被更改,包括 1 次插入0 次删除
  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() {