소스 검색

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() {